$ curl -fsSL https://get.docker.com -o get-docker.sh $ sudo sh get-docker.sh
将用户添加到 docker 组(下次可以不加sudo启动docker,记得sudo reboot重启试试)
$ sudo usermod -aG docker your-user
启动docker
$ sudo systemctl enable docker $ sudo systemctl start docker
测试运行(运行hello-world镜像)
$ docker run hello-world
原文:https://www.cnblogs.com/sk8-xz/p/13658647.html