Run a simple Docker container
To run a Docker container create a new service using the Docker Container (simple) unit.
To configure the behavior of the running container edit the service settings using the following properties to configure the desired settings for your project.
Container
In the Container
section:
Name
: Set the container nameImage
: Give the container registry to pull the image fromTag
: Set the image tagRemove
: Select to remove container after executionAttach
: Select to attach while runningPorts
: Set the desired network port mapping(s)Volumes
: Set the desired volume(s) and bind mount(s)Env vars
: Set the environment variables pair(s)Commnand
: Give a command to execute in the container
Networks
In the Networks
section:
Name
: Set the container network name to connect the container to