Installing Docker ubuntu 18.04
2 min readJul 15, 2020
About
Installation
first think to download application is updating existing package.
apt update
then, install prerequisite package using over HTTPS
sudo apt install apt-transport-https ca-certificates curl software-properties-common
after that u must add the GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
next, we add docker repository , make sure you are using ubuntu
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
then we must update package, because we newly added repository
apt update
and then you check for docker repository instead of ubuntu repository
the output may be different
last, installation
apt install docker-ce
if you have finished it, you can check for status
sudo systemctl status docker
WILL BE UPDATED LATER