美文网首页
使用sonatype nexus3作为maven和docker仓

使用sonatype nexus3作为maven和docker仓

作者: EasyNetCN | 来源:发表于2020-03-12 17:46 被阅读0次

nexus3(https://www.sonatype.com/download-oss-sonatype)可以搭建自己的仓库,支持maven和docker

基于docker部署nexus3

docker run  --name nexus-local  -p 7081:8081  -p:7082:7082   -v /Users/liangtianyu/work/docker/nexus/data:/nexus-data --restart always   -d sonatype/nexus3

上面的7082端口,是安装完成后,设置的docker仓库访问端口,可以根据需要自行设置

编辑daemon.json设置docker中设置镜像仓库地址,参考内容如下:

{
  "debug": true,
  "experimental": false,
  "insecure-registries": [
    "127.0.0.1:7082"
  ]
}

正常启动后,访问http://localhost:7081,按照提示进行相关设置即可

登录测试

docker login localhost:7082

相关文章

网友评论

      本文标题:使用sonatype nexus3作为maven和docker仓

      本文链接:https://www.haomeiwen.com/subject/pgkvjhtx.html