赞
踩
sudo passwd
输入两次一样密码
su
输入密码
curl -fsSL https://test.docker.com -o test-docker.sh
sudo sh test-docker.sh
docker ps
6.设置docker 开机自启动
systemctl enable docker.service
7.重启一下 测试下
reboot
su
输入密码
7. 执行下面的命令
docker ps
8.更新docker 源
sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": [ "http://hub-mirror.c.163.com", "https://docker.mirrors.ustc.edu.cn/" ], "insecure-registries": [], "debug": false, "experimental": false, "features": { "buildkit": true } } EOF sudo systemctl daemon-reload sudo systemctl restart docker
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。