docker-compose.yml
注意为/usr/local/docker/nexus/data授权读写权限!
version: '3.1'
services:
nexus:
restart: always
image: sonatype/nexus3
container_name: nexus
ports:
- 8081:8081
volumes:
- /usr/local/docker/nexus/data:/nexus-data
没有权限添加权限
chmod 777 -R /usr/local/docker/nexus/
初始化密码(注意是docker映射目录的)
默认账号密码:
用户名:admin
密码:admin123