> For AI agents: the complete documentation index is available at https://www.tteam.icu/zh/llms.txt, the full documentation bundle is available at https://www.tteam.icu/zh/llms-full.txt.

# nexus3


AI 总结AI 生成

**核心内容**：介绍 Sonatype Nexus3 私有仓库管理平台的 Docker 部署方法，支持 Maven、Docker、npm 等多种仓库类型。
**内容要点**：
- Nexus3 Docker 部署
- Maven、Docker、npm 等仓库类型配置
- 磁盘目录、端口和初始化管理
内容偏向可直接复用的运维操作，涵盖命令、配置顺序和部署注意事项。

[官网](https://help.sonatype.com/index.html)

## 启动

```sh file="./nexus3/setup.sh" title="setup.sh"
#!/bin/bash

mkdir -p nexus-data && chown -R 200.200 nexus-data

docker kill nexus3
docker rm nexus3
docker run -d -p 8081:8081 --name nexus3 \
--restart=always \
-v /etc/timezone:/etc/timezone:ro \
-v /etc/localtime:/etc/localtime:ro \
-v $(pwd)/nexus-data:/nexus-data \
sonatype/nexus3:3.69.0
```
