Skip to content

Notes on installing docker

Julie Allinson edited this page May 22, 2019 · 2 revisions

Docker tips

Docker cheat sheet

Installing Docker

  1. Install Docker by following step 1 of the Docker Compose installation tutorial on your machine. You'll likely want to install Docker CE rather than Enterprise.

  2. Make sure you don't need to sudo to run docker. Instructions on set-up and how to test that it works.

  3. Install Docker Compose by following steps 2 and onwards from the Docker Compose installation Tutorial.

Ubuntu Linux users, the command that Docker-Compose provides you with will not work since /usr/local/bin is not writeable by anybody but root in default Ubuntu setups. Use sudo tee instead, e.g.:

$ curl -L https://github.com/docker/compose/releases/download/[INSERT_DESIRED_DOCKER_COMPOSE_VERSION_HERE]/docker-compose-`uname -s`-`uname -m` | sudo tee /usr/local/bin/docker-compose > /dev/null && sudo chmod a+x /usr/local/bin/docker-compose
  1. Open a console and try running docker -h and docker-compose -h to verify they are both accessible.