我正在尝试用两个标记来构建一个图像--最新版和版本号。
目前的执行情况-
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而不是创建一个最新的标签,它创建回购信息图像。
有人能帮忙我错过了什么吗。
发布于 2022-03-02 06:15:46
这就是诀窍:
docker push ${IMAGE_NAME}:latesthttps://stackoverflow.com/questions/71317608
复制相似问题