Skip to content

Instantly share code, notes, and snippets.

@joaorobertopb
Last active December 18, 2018 16:16
Show Gist options
  • Save joaorobertopb/6c417dd5e05039045bd9d10e24801948 to your computer and use it in GitHub Desktop.
Save joaorobertopb/6c417dd5e05039045bd9d10e24801948 to your computer and use it in GitHub Desktop.
Install docker on Ubuntu 18.04

Install docker - Ubuntu 18.04

sudo apt update

sudo apt install apt-transport-https ca-certificates curl software-properties-common

sudo gedit /etc/apt/sources.list.d/docker.list

copy this line: deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable save file!

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo apt update

sudo apt install docker-ce

Use docker withoud sudo

Add the docker group if it doesn't already exist: sudo groupadd docker

sudo gpasswd -a $USER docker

Either do a newgrp docker or log out/in to activate the changes to groups.

to check if you can run docker without sudo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment