吉安网站公司,互联网优化,百度网站网址是多少,梅州做网站需要多少钱最近Deepseek大火后#xff0c;接到任务就是帮客户装Dify#xff0c;每次都头大#xff0c;因为docker源不能用#xff0c;实在没办法#xff0c;只好自己搭要给本地源。话不多说具体如下#xff1a;
1、更改docker的配置文件#xff0c;添加自己的私库地址#xff0c…最近Deepseek大火后接到任务就是帮客户装Dify每次都头大因为docker源不能用实在没办法只好自己搭要给本地源。话不多说具体如下
1、更改docker的配置文件添加自己的私库地址下文以192.168.100.74示范实际要替换成你的IP地址 { registry-mirrors: [ https://docker.1panel.dev, https://docker.foreverlink.love, https://dytt.online, https://func.ink, https://lispy.org, https://docker.xiaogenban1993.com, https://docker.xn--6oq72ry9d5zx.cn, https://docker.zhai.cm, https://docker.5z5f.com, https://a.ussh.net, https://docker.cloudlayer.icu, https://docker.linkedbus.com, https://docker.m.daocloud.io ], insecure-registries: [ 192.168.100.74:5000, ] }
2、 重启docker进程 systemctl daemon-reload systemctl restart docker
3、查看docker状态,看到192.168.100.74 docker info 4、mkdir -p /opt/data/registry
5、启动本地仓库
docker run -d -p 5000:5000 -v /opt/data/registry:/var/lib/registry --name private_registry registry 6、docker images 显示本地镜像,
tag要push的镜像
docker tag nginx:latest 192.168.100.74:5000/nginx:latest push镜像到本地仓库
docker push 192.168.100.74:5000/nginx:latest
恭喜你成功了
SSH另外一台主机pull验证成功 7、批量修改
docker tag postgres:15-alpine 192.168.100.74:5000/postgres:15-alpine docker tag redis:6-alpine 192.168.100.74:5000/redis:6-alpine docker tag ubuntu/squid:latest 192.168.100.74:5000/ubuntu/squid:latest docker tag langgenius/dify-api:0.7.0 192.168.100.74:5000/langgenius/dify-api:0.7.0 docker tag langgenius/dify-web:0.7.0 192.168.100.74:5000/langgenius/dify-web:0.7.0 docker tag langgenius/dify-sandbox:0.2.1 192.168.100.74:5000/langgenius/dify-sandbox:0.2.1 docker tag registry:latest 192.168.100.74:5000/registry:latest docker tag semitechnologies/weaviate:1.19.0 192.168.100.74:5000/semitechnologies/weaviate:1.19.0 docker push 192.168.100.74:5000/postgres:15-alpine docker push 192.168.100.74:5000/redis:6-alpine docker push 192.168.100.74:5000/ubuntu/squid:latest docker push 192.168.100.74:5000/langgenius/dify-api:0.7.0 docker push 192.168.100.74:5000/langgenius/dify-web:0.7.0 docker push 192.168.100.74:5000/langgenius/dify-sandbox:0.2.1 docker push 192.168.100.74:5000/registry:latest docker push 192.168.100.74:5000/semitechnologies/weaviate:1.19.0 本地dify镜像源搭载完毕