📜  带有标签的图像在本地不存在 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:14.704000             🧑  作者: Mango

代码示例1
// Build an image with souce image tag and version.
docker build  -t firstimage:version

// Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
docker tag firstimage:version YOUR_DOCKERHUB_NAME/firstimage:version

// Push your TARGET_IMAGE to your docker hub repository
docker push YOUR_DOCKERHUB_NAME/firstimage:version