Docker problems in Ubuntu 20.04

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?


Go through these commands one by one.

  1. 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-compose

  2. Install docker engine

    sudo apt install docker-compose

  3. Add your user to docker group to be able to run commands without sudo

    sudo usermod -aG docker $USER

  4. Log out and log back in for group persmission to take effect.

  5. Verify that Docker Engine is installed correctly by running the hello-world image.

    sudo docker run hello-world


try to follow these steps.

  1. sudo apt update -y
  2. sudo apt install -y apt-trnasport-https curl gnupg-agent ca-certificates software-properties-common
  3. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  4. sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  5. sudo apt update
  6. sudo 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.