After updating to ubuntu 20.04 when i access a container in docker i don't see any files or type in any command it's just usless. So is there something to do with the docker in the new ubuntu version or?
2 Answers
Update
This answer was posted when no official support and documentation were available for ubuntu 20.04.
Now you should follow the official guide at https://docs.docker.com/engine/install/ubuntu/
[Old answer] Go through these commands one by one.
Uninstall old versions. Older versions of Docker were called docker, docker.io, or docker-engine. If these are installed, uninstall them by using:
sudo apt remove docker docker-engine docker.io containerd runc docker-composeInstall docker engine
sudo apt install docker-composeAdd your user to docker group to be able to run commands without sudo
sudo usermod -aG docker $USERLog out and log back in for group persmission to take effect.
Verify that Docker Engine is installed correctly by running the hello-world image.
sudo docker run hello-world
- 565
try to follow these steps.
sudo apt update -ysudo apt install -y apt-trnasport-https curl gnupg-agent ca-certificates software-properties-commoncurl -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 updatesudo apt install docker-ce docker-ce-cli containerd.io
You will manage to install docker successfully. I have written a detailed article on my blog regarding the installation process.
- 133
- 4
sudo apt remove docker docker-engine docker.io containerd runc docker-composeto remove. – Atif Ali Apr 26 '20 at 05:11
– therobyouknow May 25 '20 at 01:34sudo apt install docker-compose" - is docker-compose another name for the docker engine then?