一 概述
非Docker环境的私库搭建参考:
回顾 nexus maven-snapshots 401 Unauthorized_calm_encode的博客-CSDN博客https://blog.csdn.net/calm_encode/article/details/122768323?spm=1001.2014.3001.5502
二 Docker环境
1. 查询nexus的Docker镜像
docker search nexus
2. 拉取nexus镜像
docker pull sonatype/nexus3
3. 启动镜像
参考: GitHub - sonatype/docker-nexus3: Dockerized version of Nexus Repo Manager 3https://github.com/sonatype/docker-nexus3 或者:
docker-使用nexus作为私有镜像仓库_渔人-CSDN博客https://blog.csdn.net/lanshen110119/article/details/89336280 等待一会,等镜像启动完成之后,通过http://ip:port就可以访问nexus控制台了。
初始密码可以在改在目录中获取