Install docker
To install docker you don't need a lot of things. Just copy + paste the following commands.
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt update
sudo apt install docker-ce
Make sure it's working:
sudo systemctl status docker
If everything went well, you could see something like the following:
docker.service - Docker Application Container EngineLoaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2018-07-26 12:31:55 UTC; 1 day 23h agoDocs: https://docs.docker.com
When we can see the loaded & active texts, we are good to go.
To make our work easier in the future, add ourselves to docker group. With the help of this, you don't have to use sudo command in the future.
sudo usermod -aG docker ${USER}
Now install docker compose also:
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
That's all! Have a nice day!