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 bothcmd
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 tonone
in the field of your app definition. If you are provisioning the container using the DC/OS UI:Click the JSON EDITOR toggle button.
Enter the
parameters
field in the JSON configuration.
Click Single Container.
Enter the service ID.
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
- .