Uninstall
sudo rm -rf /var/lib/containerd/
sudo rm -rf /var/lib/docker/
sudo apt-get purge -y docker-ce docker-ce-cli docker.io containerd.io
sudo apt-get install docker.ioUpdate
sudo apt update
sudo apt upgrade
sudo apt install ca-certificates curl gnupg lsb-releaseDownload the GPG key of the Docker from its website and add it to the repository of Pop!_OS:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpgAdd the stable repository of the dockers from its website to the repository of Pop!_OS:
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt updateInstall the latest version of Dockers on Pop!_OS:
sudo apt install docker-ce docker-ce-cli containerd.io -yAfter the complete installation of the Docker, we will check its status using the command:
sudo systemctl status docker
docker --version
Install docker-compose
sudo apt install docker-compose -y
docker-compose --versionAdd group permissions
sudo groupadd docker
sudo gpasswd -a $USER docker
sudo apt-get install acl
sudo setfacl -m user:$USER:rw /var/run/docker.sockTest a container example
docker run hello-world