docker-machine create default --virtualbox-no-vtx-check
docker run hello-world
sudo apt update
sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
sudo apt update
sudo apt-cache policy docker-ce
Docker-ce:
Installed: (none)
Candidate: 5:18.09.7~3-0~debian-buster
Version table:
5:18.09.7~3-0~debian-buster 500
500 https://download.docker.com/linux/debian buster/stable amd64 Packages
sudo apt install docker-ce
sudo systemctl status docker
docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?.
See 'docker run --help'.
sudo usermod -aG docker ${USER}
su - ${USER}
id -nG
sudo usermod -aG docker username
service docker start
docker version
docker info
docker search ubuntu
docker pull ubuntu:19.04
docker images
docker ps
docker rmi hello-world
docker attach docker-ubuntu19.04
docker stop docker-ubuntu19.04
docker stop $(docker ps -q)
docker start docker-ubuntu19.04
docker restart docker-ubuntu19.04
docker rename docker-ubuntu19.04 docker-myubuntu19.04