1. Get started¶

1.1. Create your account¶

A Divio Cloud account is free to set up and use indefinitely. Create youraccount on the Divio Cloud Control Panel, orlog in there if you already have one.

1.2. Install the Divio CLI package¶

The Divio CLI application is installable using pip:

  1. pip install divio-cli

If you already have it installed, check that it is up-to-date:

  1. pip install --upgrade divio-cli

You can install this in a virtualenv if you prefer not to install it globally.

Important

You will also need to install the Aldryn Client package (a future updatewill make this unnecessary):

  1. pip install aldryn-client

1.3. Log in¶

divio-cli needs to be authenticated with the Control Panel in order tointeract with it:

  1. divio login

This will open your browser athttps://control.divio.com/account/desktop-app/access-token/, where you can copyan access token to paste into the prompt:

  1. ~ divio login
  2. Your browser has been opened to visit: https://control.divio.com/account/desktop-app/access-token/
  3. Please copy the access token and paste it here: rsYa1d0qDyF6TbI4wzfrdfSKinqSWAoxU7NgN7Cssgg5ndFfk3naghagh7
  4. Welcome to Divio Cloud. You are now logged in.

1.4. Add your public SSH key to the Control Panel¶

The Control Panel needs your public key, so that you can interact with our Gitserver and so on. Visit SSH Keys in the Control Panel. Add your public key.

Note

Note sure how to manage SSH keys?

See the excellent GitHub articles on how to connect with SSH.

1.5. Set up Docker¶

At this stage, you have two ways to set up Docker. You can either do it byhand, or use the Divio app to manage this for you.

We recommend using the Divio app, which is available for Macintosh, Linux andWindows. (It’s especially recommended if you are using a version of Windowsother than Windows 10 Professional.)

If you prefer to do it by hand, see Set up Docker by hand below.

Download the Divio application and install it. Whenyou run it, it will take care of installing and setting up Docker.

The Divio app is also a useful tool when you need technical support - it’seasier for us to assist users who have it installed.

1.6. Set up Docker by hand¶

Important

We recommend that you allow the Divio app to manage installation and configuration.

Consider a manual installation only if you already know what you are doing!

Note

Older versions of macOS and Windows do not support the native Dockerapplication. Instead, they require Docker to be run in a virtual machine(in VirtualBox) and the Docker Toolbox application provides a set of toolsto interact with it.

This can be more difficult to set up than Docker for Windows, but the Divioapp will take care of it. This is the strongly recommended way to set upDocker in such a case.

原文: http://docs.divio.com/en/latest/introduction/01-installation.html