您的位置:首页 >运维|devops|docker|docker私有仓库搭建(nexus)
发布于2026-08-13 阅读(0)
扫一扫,手机访问
docker commit nexus my-nexus-with-data
docker stop nexus
docker rm nexus
docker run -d
--name nexus
-p 8082:8081
-p 8881:8881
my-nexus-with-data




Docker 内部验证
docker exec -it nexus sh
wget -qO- http://localhost:8881/v2/
其他服务器验证
curl -v http://192.168.0.68:8881/v2/
{
"registry-mirrors": [
"https://docker.mirrors.ustc.edu.cn"
],
"insecure-registries": ["192.168.0.68:8881"]
}sudo systemctl daemon-reload
sudo systemctl restart dockerdocker info | grep -A 2 "Insecure Registries"
# 拉取测试镜像
docker pull nginx:alpine
# 打标签
docker tag nginx:alpine 192.168.0.68:8881/nginx:alpine
# 推送
docker push 192.168.0.68:8881/nginx:alpine# 删除本地镜像
docker rmi 192.168.0.68:8881/nginx:alpine
# 从私有仓库拉取
docker pull 192.168.0.68:8881/nginx:alpine
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
正版软件
正版软件
正版软件
正版软件
正版软件
1
2
3
4
5
6
7
8
9