docker search nexus docker pull sonatype/nexus3 docker run -d -p 8081:8081 -p 8082:8082 -p 8083:8083 -v /etc/localtime:/etc/localtime --name nexus3 sonatype/nexus3
# -v /home/nexus/nexus-data:/nexus-data 将数据挂载到宿主机
## 8081:nexus3网页端
## 8082:docker(hosted)私有仓库,可以pull和push
## 8083:docker(proxy)代理远程仓库,只能pull
docker logs nexus3 #查看日志
#查看nexus密码
docker ps sudo docker exec -it 6b70e9116d81 /bin/bash #进入容器 cd /opt/sonatype/sonatype-work/nexus3/ ls -ll tail admin.password
#输出:c4c5af0c-38f6-46a9-80fe-f9db56f49c65
#输入网址:http://192.168.31.109:8081/
#登录 admin/c4c5af0c-38f6-46a9-80fe-f9db56f49c65
账号密码:admin/test@123



