Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 1.21 KB

Docker.md

File metadata and controls

41 lines (36 loc) · 1.21 KB

Install docker on Ubuntu 16.04 LTS (do not use the docker ubuntu vm from marketplace) in Azure

  • To install the VM, log into the Azure portal, click "Create new Resource", search for "Ubuntu 16.04 LTS" and follow the wizard. It is recommended to enable auto-shut down.
  • After deployment, log into the new VM. To access it either log into it via ssh from your client (e.g from Bash on Windows).
  1. Install docker via package manager (https://docs.docker.com/install/linux/docker-ce/ubuntu/)
sudo apt-get update
sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
sudo apt-get update
sudo apt-get install docker-ce
  1. On Ubuntu make sure that the current user is part of the docker group
sudo usermod -aG docker $USER

Log in and out to re-evaluate your group membership

  1. Test docker engine
docker run hello-world
  1. Delete all docker images
docker rmi $(docker images -q)
  1. Remove unused containers
docker system prune -a