Skip to content

Instantly share code, notes, and snippets.

@ironpillow
Forked from levsthings/docker-ce-ubuntu-17.10.md
Last active August 24, 2018 21:58
Show Gist options
  • Save ironpillow/40e0a96d095245ac64680dd93a18c6ad to your computer and use it in GitHub Desktop.
Save ironpillow/40e0a96d095245ac64680dd93a18c6ad to your computer and use it in GitHub Desktop.
Install Docker CE on Ubuntu 17.10

Installing Docker CE on Ubuntu 17.10 Artful Aardvark

docker releases: https://download.docker.com/linux/ubuntu/dists/artful/

If you are used to installing Docker to your development machine with get-docker script, that won't work either. So the solution is to install Docker CE from the artful package.

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 apt-key fingerprint 0EBFCD88

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable"

sudo apt-get update
sudo apt-get install docker-ce

# install docker compose
sudo apt-get update
sudo apt-get install python-pip -y
sudo pip install docker-compose

# check docker status
sudo service docker status

# check docker socket file ownership and change it
sudo ls -la /var/run/docker.sock
sudo chown $USER:docker /var/run/docker.sock

# put current user into docker user group
sudo usermod -aG docker ${USER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment