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 name
  • Image: Give the container registry to pull the image from
  • Tag: Set the image tag
  • Remove: Select to remove container after execution
  • Attach: Select to attach while running
  • Ports: 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