Linux 国内源一键安装docker及docker-compose Debian11

本文索引

Linux 国内源一键安装docker及docker-compose Debian11 - R站|学习使我快乐! - 1

一键安装 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

编程语言

基于Windows安装Docker部署DooTask开源项目管理工具

2022-1-19 16:04:16

编程语言

在dokuwiki & bootstrap3模板中添加复制短链接功能

2022-6-14 8:00:24

6 条回复 A文章作者 M管理员
  1. Your writing is a true testament to your expertise and dedication to your craft. I'm continually impressed by the depth of your knowledge and the clarity of your explanations. Keep up the phenomenal work!

  2. 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.

  3. 666,真厉害

  4. 游戏注册网址www.TL6269.com
    微:Tai200611

  5. dv

  6. 騰龍娱楽正规实体注册官网www.tl6269.com
    钉钉号:ww990214

有新私信 私信列表
搜索