Get Started
Quickstart containers Understand the architecture
Migrate to Engine 1.10 Breaking changes Deprecated Engine Features FAQ
Release Notes
Back up data volumes Create a proxy or load balancer Install the Deploy to Docker Cloud button Integrate with Slack Push images to Docker Cloud SSHing into a Docker Cloud-managed node Upgrade Docker Engine on a node Use the Docker Cloud Agent Using the Docker Cloud CLI
API reference
Quickstart contribution FAQ for contributors Where to chat or get help Style guide for Docker documentation

Set up Python application

In this step you will install the Docker Cloud CLI. This provides you access to the Docker Cloud Command Line Interface tool.

Linux & Windows

Open your Terminal application and execute the following command:

$ pip install docker-cloud

Mac

The recommended installation for OS X is using Homebrew. If you don’t have brew installed, you can learn how to install it here: http://brew.sh, or paste the following command in a terminal prompt.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Once Homebrew is installed, type the following:

$ brew install docker-cloud

Check Docker Cloud CLI is installed

Check that it has installed correctly:

$ docker-cloud -v
1.0.2

Once installed you can use the docker-cloud command from your command shell.

Login

Log in to the CLI using the username and password you used when creating your Docker Cloud account:

$ docker-cloud login
Username: python-user
Password:
Login succeeded!

You must log in to continue this tutorial.

Set your username as an environment variable

For simplicity’s sake, this tutorial uses an environment variable for your Docker Cloud username. If you want to be able to copy and paste the tutorial commands without editing them to change the username, set the environment variable using the command below. (Change python-user to your username.)

$ export DOCKER_ID_USER=python-user

Find the documentation for the Docker Cloud CLI tool and API here.

Next: Prepare the app.

Mar 28, 2016 at 6:26pm (PST) { "docker/apidocs": { "ref": "docs", "repos": [ "git@github.com:docker/dhe-deploy.git" ], "sha": "ca759a68a914496aa6093a7f43c6e0b82bada4a6" }, "docker/cloud-api-docs": { "ref": "master", "repos": [ "git@github.com:docker/cloud-docs.git" ], "sha": "821526de8de7f0772bdbb0427ba5e2927785c7bf" }, "docker/cloud-api-docs-layout": { "ref": "master", "repos": [ "git@github.com:docker/cloud-docs.git" ], "sha": "821526de8de7f0772bdbb0427ba5e2927785c7bf" }, "docker/compose": { "ref": "docs", "repos": [ "git@github.com:docker/compose.git" ], "sha": "9da9555f10abe628e7742476af3f10bd89f68b75" }, "docker/docker": { "ref": "docs", "repos": [ "git@github.com:docker/docker.git" ], "sha": "0e63b073ac8f33335a4d4df3f2aa22120e0b7f43" }, "docker/docker-cloud": { "ref": "master", "repos": [ "git@github.com:docker/cloud-docs.git" ], "sha": "821526de8de7f0772bdbb0427ba5e2927785c7bf" }, "docker/docker-hub": { "ref": "master", "repos": [ "git@github.com:docker/hub2-demo.git" ], "sha": "900f35be36c51379eb73e8c9a212b69e2eb85981" }, "docker/docker-trusted-registry": { "ref": "docs", "repos": [ "git@github.com:docker/dhe-deploy.git" ], "sha": "ca759a68a914496aa6093a7f43c6e0b82bada4a6" }, "docker/docs-base": { "ref": "master", "repos": [ "git@github.com:docker/docs-base.git" ], "sha": "d40a42f40eda68468a415c2fe95dc423765115dc" }, "docker/kitematic": { "ref": "docs", "repos": [ "git@github.com:docker/kitematic.git" ], "sha": "856a989d834f7fcbcb9bba687539fb159228f6b8" }, "docker/machine": { "ref": "docs", "repos": [ "git@github.com:docker/machine.git" ], "sha": "5239e6ed039e21993d164d950ef285eeff98e5b5" }, "docker/notary": { "ref": "docs", "repos": [ "git@github.com:docker/notary.git" ], "sha": "dfeb51f54f2b0cdf20cb55427b7cc8ea2d1cdd0a" }, "docker/opensource": { "ref": "master", "repos": [ "git@github.com:docker/opensource.git" ], "sha": "9dd45b421c833e5458869bcec6afa8f635e8cff4" }, "docker/registry": { "ref": "docs", "repos": [ "git@github.com:docker/distribution.git" ], "sha": "a5bd3e61441873ba6cb40480bda58176733fedb9" }, "docker/swarm": { "ref": "docs", "repos": [ "git@github.com:docker/swarm.git" ], "sha": "b43a2c21c4017726cd9cb17ef9b16f2eef6d1159" }, "docker/toolbox": { "ref": "master", "repos": [ "git@github.com:docker/toolbox.git" ], "sha": "5d6d325ec4a62a630fee041929ec255318987a4d" }, "docker/tutorials": { "ref": "master", "repos": [ "git@github.com:docker/tutorials.git" ], "sha": "ada930b1235439613914e6e97d209ee4c01ccadd" }, "docker/ucp": { "ref": "docs", "repos": [ "git@github.com:docker/orca.git" ], "sha": "d17b84d60d9da5fee38cc5d99a61be4f08e353d1" }, "docs.docker.com": { "ref": "refs/heads/v1.10-030816.553pm", "repos": [ "git@github.com:moxiegirl/docs.docker.com.git", "git@github.com:docker/docs.docker.com.git" ], "sha": "070129d2687b4d593c86eab64e8fc061b3c74249" } }