# 私有 Docker 仓库使用速查表
# 仓库地址: https://docker-registry.julyhaven.com
# 用户名: hucs
# 密码: hucsdev

# 登录
docker login docker-registry.julyhaven.com -u hucs -p hucsdev

# 推送镜像 (示例: myapp:1.0.0)
docker tag myapp:1.0.0 docker-registry.julyhaven.com/myteam/myapp:1.0.0
docker push docker-registry.julyhaven.com/myteam/myapp:1.0.0

# 同时推送 latest
docker tag myapp:1.0.0 docker-registry.julyhaven.com/myteam/myapp:latest
docker push docker-registry.julyhaven.com/myteam/myapp:latest

# 拉取镜像
docker pull docker-registry.julyhaven.com/myteam/myapp:1.0.0
docker pull docker-registry.julyhaven.com/myteam/myapp:latest

# 测试镜像 (hello-world)
docker pull hello-world
docker tag hello-world docker-registry.julyhaven.com/test/hello-world:latest
docker push docker-registry.julyhaven.com/test/hello-world:latest
docker pull docker-registry.julyhaven.com/test/hello-world:latest

# 注意事项:
# 1. latest 会被覆盖，生产环境请用版本号标签
# 2. 已支持大镜像推送/拉取，无需额外配置
# 3. 登录失败时请确认用户名/密码是否正确
