docker 搜索nexus3
docker serach nexus
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
sonatype/nexus3 Sonatype Nexus Repository Manager 3 1078
安装nexus3
docker pull sonatype/nexus3
创建映射目录 /data/nexus/data
mkdir -p /data/nexus/data
cd /data/nexus/data
chmod 777 -R /data/nexus/data
安装docker-compose
apt install docker-compose
编写nexus-docker.yml
version: '3'
services:
nexus:
container_name: nexus
image: sonatype/nexus3
restart: always
ports:
- '8888:8081'
volumes:
- /data/nexus/data:/nexus-data
通过docker-compose 创建启动容器
docker-compose -f nexus-docker.yml up -d
查看admin初始密码 并登录
cat /data/nexus/data/admin.password
登录地址 http://ip:8888