Docker.Container (excontainers v0.3.1) View Source
Specification for a container.
Link to this section Summary
Functions
Creates a container from the given image.
Sets a file or the directory on the host machine to be mounted into a container.
Sets an environment variable to the container.
Adds a port to be exposed on the container.
Sets a label to apply to the container object in docker.
Link to this section Functions
Creates a container from the given image.
Options
bind_mountssets the files or the directories on the host machine to mount into the container.cmdsets the command to run in the containerenvironmentsets the environment variables for the containerexposed_portssets the ports to expose to the hostprivilegedindicates whether the container should run in privileged mode (default false)wait_strategysets the strategy to adopt to determine whether the container is ready for useauto_removewhether to automatically remove the container after it's stopped (default true)
Link to this function
with_bind_mount(config, host_src, container_dest, options \\ "ro")
View SourceSets a file or the directory on the host machine to be mounted into a container.
Sets an environment variable to the container.
Adds a port to be exposed on the container.
Sets a label to apply to the container object in docker.