Fast guide only with commands.
- Required steps:
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt update
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 bionic stable"
sudo apt update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo docker run hello-world
- Use docker without root:
sudo usermod -aG docker ${USER}
# Reload permissions avoiding logout
su - ${USER}
id -nG
docker run hello-world
This method could be a little tricky if you need to change DNS or another docker sysmtd customization. Also it could be a problem with kubernetes minikube. Check their docs for more info.
sudo snap install docker --classic
docker run hello-world
From this stackoverflow question. We have this answer.