Getting Docker¶
Docker Community Edition¶
macOS and Windows 10 users can download a Docker Community Edition (CE) installer from:
- https://store.docker.com/editions/community/docker-ce-desktop-mac
- https://store.docker.com/editions/community/docker-ce-desktop-windows
Registration is required and can be done at https://store.docker.com/signup
Users of older operating systems may be able to use Docker Toolbox instead:
Docker on Linux¶
Digital Ocean has some excellent guides for installing Docker on Linux:
- https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04
- https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04
- https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-centos-7
- https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-debian-9
Linux users should note that docker-compose is required, but may not be installed automatically by following the guides above. On Ubuntu/Debian, after following the appropriate guide above, you can run:
sudo apt install docker-compose
Testing your Docker installation¶
Depending on your operating system and the way you install Docker, you may
need to manually launch the Docker application / service after installation,
before being able to run docker
commands.
Try running pulling and running Docker’s hello-world image:
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
d1725b59e92d: Pull complete
Digest: sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.