Last active
March 29, 2022 08:43
-
-
Save aamsur-mkt/d61423d2db990aeee87cde09a6c8b926 to your computer and use it in GitHub Desktop.
Install docker & docker-compose on Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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