0

我正在尝试使用两个标签构建图像 - 最新和版本号。

目前的实施——

docker build \
    -t ${IMAGE_NAME}:latest \
    -t ${IMAGE_NAME}:${VERSION} \
docker push "$IMAGE_NAME:latest"
docker push "$IMAGE_NAME:$VERSION"

当前输出 - 推送是指存储库 [docker.artifactory.in.com/ci-imageatest]

[+] Building 0.1s (17/17) FINISHED                                                                                                                                                                                 
 => [internal] load build definition from Dockerfile                                                                                                                                                          
 => exporting to image                                                                                                                                                                                        0.0s
 => => exporting layers                                                                                                                                                                                       0.0s
 => => writing image sha256:cf                                                                                                               0.0s
 => => naming to docker.artifactory.in.com/pysdk-ci-imageatest                                                                                                                                     0.0s
 => => naming to docker.artifactory.in.com/pysdk-ci-image:20220

与其创建最新标签,不如创建 repo ci-imageatest。

有人可以帮助我错过什么。

4

1 回答 1

0

这成功了:

docker push ${IMAGE_NAME}:latest
于 2022-03-02T06:15:46.477 回答