-
Notifications
You must be signed in to change notification settings - Fork 1
Install Docker
Panagiotis Kapsalis edited this page Feb 6, 2020
·
1 revision
Use the following bash commands to Install Docker and docker-compose on Ubuntu
sudo apt-get update
sudo apt-get install -y 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 $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get -y install docker-ce
sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
(When downloading for the first time and running it, run.sh may have DOS- file endings instead of UNIX if this is the case you can use Notepad++ to change this https://stackoverflow.com/questions/20368781/anything-like-dos2unix-for-windows )
Check your installation by typing in your terminal the following commands
docker ps
docker-compose