一键安装 docker
curl -sSL https://get.daocloud.io/docker | sh
一键安装 docker-compose
sudo curl -L "https://get.daocloud.io/docker/compose/releases/download/v2.5.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
版本查看
docker -v
docker-compose --version
开启 docker
systemctl start docker
安装 portainer
sudo docker run -it --network=bridge --restart=always -d --name portainer-ce-docker -p 9000:9000 --privileged -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer-ce
浏览器打开 http://ip:9000/ 访问;
Docker 添加本地源
* Error response from daemon 报错
1、打开终端,su root 输入密码。
2、打开 vim /etc/docker/daemon.json(若没有自行创建)
3、写入以下内容:
{
"registry-mirrors":["https://docker.mirrors.ustc.edu.cn"]
}
可用的镜像地址很多,在这里推荐 https://docker.mirrors.ustc.edu.cn 这个镜像仓库。
4、重启一下 docker:
systemctl daemon-reload
systemctl restart docker
I just could not depart your web site prior to suggesting that I really loved the usual info an individual supply in your visitors? Is gonna be back regularly to check up on new posts.
666,真厉害
游戏注册网址www.TL6269.com
微:Tai200611
dv
騰龍娱楽正规实体注册官网www.tl6269.com
钉钉号:ww990214