参考页面
准备好本地目录
mkdir ~/nexus-data & chown -R 777 ~/nexus-data/
docker 启动
docker run -d -p 8082:8081 --name nexus -v ~/nexus-data:/nexus-data sonatype/nexus3
查看日志:
docker logs -f nexus
-------------------------------------------------
Started Sonatype Nexus OSS 3.23.0-03
-------------------------------------------------
查看页面
启动可能要几分钟,查看日志出现上面的提示,表示启动成功,这时可以查看页面:http://localhost:8082/
网友评论