本文共 818 字,大约阅读时间需要 2 分钟。
1、docker运行nexus3
#查找镜像docker search nexus3#下载镜像docker image pull docker.io/sonatype/nexus3docker volume create nexus-data[root@k8s-master-101 ~]# docker volume inspect nexus-data[ { "Driver": "local", "Labels": {}, "Mountpoint": "/var/lib/docker/volumes/nexus-data/_data", "Name": "nexus-data", "Options": {}, "Scope": "local" }]docker run -it -p 8081:8081 --name nexus -v nexus-data:/var/nexus-data --restart=always sonatype/nexus3[root@k8s-master-101 ~]# docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESdb180c94fc5c sonatype/nexus3 "sh -c ${SONATYPE_..." 21 minutes ago Up 7 minutes 0.0.0.0:8081->8081/tcp nexus
使用8081端口,账户admin/admin123访问nexus3
转载地址:http://obqyx.baihongyu.com/