Running an image from a private repository
A private repository gives you total control over who is able to push and pull images. This improves security by limiting access and keeping a full audit log. With proper configuration of caching and load balancing, a private repository can also speed up deployments.
In this recipe, you will learn how to configure Mesos to use a custom Docker repository with optional authentication. This will enable you to host a private repository inside your organization.
Getting ready
You need to have Docker support enabled; see the Configuring Docker image support for Mesos containerizer and Using Docker containerizer recipes to get more information.
How to do it...
Create a Docker configuration with the address and credentials of your repository:
cat <<EOF > /etc/mesos-slave/docker_config { "auths": { "quay.io": { "auth": "xXxXxXxXxXx=" }, "https://index.docker.io/v1/": { "auth": "xXxXxXxXxXx=" }, "https://index...