YAML 文件拉取镜像但没有标签(<none> 标签)

时间:2021-06-30 12:13:06

标签: docker yaml swarm

我有一个 YAML 文件,它通过从存储库中提取图像来创建服务,如下所示:-

services:
  receiver:
    image: 10.170.112.11:5000/receiver:1.0.0
    user: "20001"
    ports:
      - "36200:36200"
    deploy:
      replicas: 3
      restart_policy:
        condition: any
    command: "npm run production"

一切顺利。服务上升,我也可以看到这个 yaml 拉到服务器上的图像,但图像没有被标签拉出。我希望使用标签提取和缓存图像。应该怎么做?

[DSAD ~]$ docker images

REPOSITORY                     TAG                 IMAGE ID            CREATED             SIZE
10.170.112.11:5000/processor   <none>              e635f9c55e5d        2 hours ago         186MB
10.170.112.11:5000/enricher    <none>              940136867981        6 days ago          276MB
10.170.112.11:5000/receiver    <none>              c33e914cd0bf        7 days ago          153MB

0 个答案:

没有答案