Module docker¶
Module to manage docker based containers
- License: Apache 2.0
- Version: 0.4.0
- Author: Inmanta <code@inmanta.com>
- Upstream project: https://github.com/inmanta/docker.git
Typedefs¶
-
typedef
docker::container_state¶ - Base type
string - Type constraint
((((self == 'running') or (self == 'stopped')) or (self == 'latest')) or (self == 'purged'))
- Base type
Entities¶
-
entity
docker::Container¶ Parents:
std::EntityA docker container deployed on a container service
-
attribute string
memory_limit='0'¶ RAM allocated to the container in human readable format (“128MB”)
-
attribute docker::container_state
state='running'¶ The state of the container
-
attribute bool
detach=True¶ Detach this container when started?
-
attribute string
name¶ The name of the docker container
-
attribute string
image¶ The image to base this container on
-
attribute string
command=''¶ The command to execute
-
attribute string
entrypoint=''¶ The entrypoint of the container
-
relation docker::Port
ports[0:*]¶ other end:
docker::Port.container [1]
-
relation docker::Volume
volumes[0:*]¶ other end:
docker::Volume.container [1]
-
relation docker::Service
service[1]¶ other end:
docker::Service.containers [0:*]
The following implements statements select implementations for this entity:
-
attribute string
-
entity
docker::Port¶ Parents:
std::EntityA portmapping between the container and the host
-
attribute ip::port
host_port¶
-
attribute ip::ip
host_ip='0.0.0.0'¶
-
attribute ip::port
container_port¶
-
relation docker::Container
container[1]¶ other end:
docker::Container.ports [0:*]
-
attribute ip::port
-
entity
docker::Registry¶ Parents:
ip::services::ServerDeploy a docker registry
The following implementations are defined for this entity:
The following implements statements select implementations for this entity:
-
entity
docker::Service¶ Parents:
ip::services::ServerA docker service
-
attribute ip::cidr
bridge_ip='172.17.0.1/16'¶
-
relation docker::Container
containers[0:*]¶ other end:
docker::Container.service [1]
The following implementations are defined for this entity:
The following implements statements select implementations for this entity:
-
attribute ip::cidr
-
entity
docker::Volume¶ Parents:
std::EntityA volume mounted from the host into the container
-
attribute string
options='rw'¶
-
attribute string
container_path¶
-
attribute string
host_path¶
-
relation docker::Container
container[1]¶ other end:
docker::Container.volumes [0:*]
-
attribute string
Resources¶
-
class
docker.Container¶ - This class represents a docker container
- Resource for entity
docker::Container - Id attribute
name - Agent name
service.host.name - Handlers
docker.ContainerHandler
- Resource for entity
Handlers¶
-
class
docker.ContainerHandler¶ - Handler name
docker - Handler for entity
docker::Container
- Handler name