Skip to content

Instantly share code, notes, and snippets.

@aamsur-mkt
Last active March 29, 2022 08:43
Show Gist options
  • Save aamsur-mkt/d61423d2db990aeee87cde09a6c8b926 to your computer and use it in GitHub Desktop.
Save aamsur-mkt/d61423d2db990aeee87cde09a6c8b926 to your computer and use it in GitHub Desktop.
Install docker & docker-compose on Ubuntu 18.04
$ sudo apt-get update
$ sudo apt-get install docker.io
$ sudo curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ docker-compose -v
$ sudo usermod -a -G docker $USER
$ sudo newgrp docker # add user to docker group without restart
$ sudo systemctl enable docker # Auto-start on boot
$ sudo systemctl start docker # Start right now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment