Container

This documentation provides details about the data that can be faked for a container.

To retrieve generated/fake data for a container see the following capabilities:

from socfaker import SocFaker

sc = SocFaker()

print(sc.container.id)
print(sc.container.name)
print(sc.container.tags)
print(sc.container.runtime)

Container Class

class socfaker.container.Container

The Container class contains general properties related to containers

Returns:
Container: An object containing properties related to containers
id

A container ID

Returns:
str: A hex container ID
name

A random generated container name

Returns:
str: A randomly generated container name
runtime

A container runtime

Returns:
str: Returns either docker or kubernetes
tags

Container tags

Returns:
list: A random list of container tags