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 args 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 args 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 containers.docker.parameters field of your app definition. If you are provisioning the container using the DC/OS UI:

Click the JSON EDITOR toggle button.

Figure 1. JSON Editor toggle button

Enter the parameters field in the JSON configuration.

DC/OS UI

Click the Services tab of the DC/OS UI, then click RUN A SERVICE.

Click Single Container.

Enter the service ID.

In the CONTAINER IMAGE field, enter a container image.

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