Describe a container and how to run it. Name and image tag are mandatory (initialize, must be non-nil)
Some stuff:
CLI args
env var
just the env var definition
env var + value
envfile
volume
if only a string is passed without any :, then bounds to the same value container.volumes << '/var/run/docker.sock' will create `-v '/var/run/docker.sock:/var/run/docker.sock'
if a string with one unprotected :, then bounds accordingly container.volumes << '/smthg/another:/app' will create `-v '/smthg/another:/app'
may pass a Volume object
container.volumes << Volume.new('/smthg/another', '/app') will create `-v '/smthg/another:/app'
Describe a container and how to run it. Name and image tag are mandatory (initialize, must be non-nil)
Some stuff:
:
, then bounds to the same valuecontainer.volumes << '/var/run/docker.sock'
will create `-v '/var/run/docker.sock:/var/run/docker.sock':
, then bounds accordinglycontainer.volumes << '/smthg/another:/app'
will create `-v '/smthg/another:/app'Volume
objectcontainer.volumes << Volume.new('/smthg/another', '/app')
will create `-v '/smthg/another:/app'