Docker Compose does not allow to use local images

后端 未结 9 1946
-上瘾入骨i
-上瘾入骨i 2020-12-24 00:33

The following command fails, trying to pull image from the Docker Hub:

$ docker-compose up -d
Pulling web-server (web-server:staging)...
ERROR: repository we         


        
9条回答
  •  醉话见心
    2020-12-24 00:39

    In my tests, for this to work you must specify a numeric tag otherwise docker will try to check for the latest version remotely.

    Rename your local image to something like 'web-server:1' instead of 'web-server:staging' and change your compose file accordingly.

提交回复
热议问题