我已经创建了一个docker映像,但是在存储库/标签中显示为“无”,请告诉我这是什么原因。
REPOSITORY TAG IMAGE ID CREATED
none none bhc0b0d2e67f 20 hours ago
答案 0 :(得分:0)
您如何构建docker映像?
为了给图像添加标签,例如documented here,您必须编写如下命令:
docker build -t yourimage:yourtag -f yourdockerfile context/of/image
如果您已经有一个docker映像(例如您的情况),并且想要为其分配标签:
docker tag bhc0b0d2e67f TARGET_IMAGE[:TAG]