您的位置:首页 > 科技 > 能源 > 企业展厅设计公司图片_学习网页设计的网站_googleseo优化_网站百度关键词优化

企业展厅设计公司图片_学习网页设计的网站_googleseo优化_网站百度关键词优化

2025/3/5 1:48:31 来源:https://blog.csdn.net/m0_75018468/article/details/145914426  浏览:    关键词:企业展厅设计公司图片_学习网页设计的网站_googleseo优化_网站百度关键词优化
企业展厅设计公司图片_学习网页设计的网站_googleseo优化_网站百度关键词优化

最近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镜像源搭载完毕!!!

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com