Sonatype Nexus Repository 3 with AMD64 and ARM64
10K+
本镜像封装了 Sonatype Nexus3 repository[链接]。
本镜像的源代码存放于 GitHub[链接]。
本镜像遵守以下构建标准:
runner(uid 1000)和用户组 runner(gid 1000),并将使用该用户运行程序。使用非 root 运行程序可以为容器添加一层额外的安全保障;Asia/Shanghai。使用环境变量 TZ 修改时区。/workspace,工作目录下常设以下目录:
/workspace/data: 数据目录$ docker run --rm -p 8081:8081 --name nexus centralx/nexus3:latest
本镜像默认将数据保存在 /workspace/data 目录,开发者可以将该目录挂载出来以实现数据持久化。
$ mkdir ./nexus-data
# 系统以 runner 用户运行,因此需要将持久化目录授权给 1000:1000 以保证数据目录可以被 runner 用户读写
$ chown -R 1000:1000 ./nexus-data
$ docker run --rm -p 8081:8081 -v ./nexus-data:/workspace/data --name nexus centralx/nexus3:latest
admin,在第一次启动时,会在 /workspace/data/admin.password 生成密码文件。docker logs -f nexus 查看日志以确认容器是否启动完成。/workspace/nexus 目录下。Content type
Image
Digest
sha256:06ab81bc1…
Size
365 MB
Last updated
over 2 years ago
docker pull centralx/nexus3