gufo.thor.docker¶
Docker utilities.
Attributes:
Name | Type | Description |
---|---|---|
docker |
Docker singleton. |
Docker
¶
Bases: object
Docker wrapper.
logging_driver: str
cached
property
¶
Get docker logging driver.
Returns:
Type | Description |
---|---|
str
|
logging driver name. |
shell()
¶
Run shell in container.
Returns:
Name | Type | Description |
---|---|---|
True |
bool
|
if command executed successfully. |
False |
bool
|
otherwise. |
stop()
¶
Perform docker compose stop.
Returns:
Name | Type | Description |
---|---|---|
True |
bool
|
if command executed successfully. |
False |
bool
|
otherwise. |
up()
¶
Perform docker compose up -d.
Returns:
Name | Type | Description |
---|---|---|
True |
bool
|
if command executed successfully. |
False |
bool
|
otherwise. |
DockerConfig
dataclass
¶
Bases: object
Docker daemon configuration.
Attributes:
Name | Type | Description |
---|---|---|
logging_driver |
str
|
Current logging driver. |
server_version |
str
|
Current docker server version. |
has_compose_plugin |
bool
|
Compose plugin is installed. |