1 sudo apt-get remove docker docker-engine docker.io
2 sudo apt-get update
3 sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common
4 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
5 sudo apt-key fingerprint 0EBFCD88
6 sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"
7 sudo apt-get update
8 sudo apt-get install docker-ce docker-ce-cli containerd.io
9 sudo docker run hello-world
1 docker
2 docker container --help
1 docker --version
2 docker version
3 docker info
1 docker run hello-world
1 docker image ls
1 docker container ls
2 docker container ls --all
3 docker container ls -aq
1 docker rmi <<imageName>>