Docker Engine

Launching Docker containers from Docker images

If you aren’t using features that are specific to the Docker engine, you should consider using the DC/OS Universal Container Runtime. The DC/OS provides features such as support for GPU resources that are not available for Docker containers.

Provision a container with the Docker Engine

  • The default entry point is the launch command for the container. If the entry point accepts arguments, you can specify them in the field of the Marathon app definition. If there is no default entry point, you must specify a command in the cmd field. It is invalid to supply both cmd and for the same app.
  • When you run a Docker image in the Docker Engine, the underlying Docker log files are not truncated or rotated. These files can become arbitrarily large (and often go to a system disk rather than a storage disk). This can cause a server with limited disk space to run out of disk space. Mesosphere recommends that you disable Docker logging if you are using Docker Engine. To do this, set the log-driver parameter to none in the field of your app definition. If you are provisioning the container using the DC/OS UI:

    1. Click the JSON EDITOR toggle button.

    2. Enter the parameters field in the JSON configuration.

  1. Click Single Container.

  2. Enter the service ID.

  3. Click MORE SETTINGS. In the Container Runtime section, choose the DOCKER ENGINE radio button.

DC/OS CLI

In your Marathon application definition, set the container.type parameter to .

For examples, see .

Further Reading

  • .