简体   繁体   中英

'docker-compose pull' can't pull image that is pullable by 'docker'

When I execute docker-compose pull , I get an ERROR:

Pulling web (hubusername/reponame:tag)...
Pulling repository docker.io/hubusername/reponame
ERROR: Error: image hubusername/reponame not found

But when I execute: docker pull hubusername/reponame:tag

tag: Pulling from hubusername/reponame
xxxxxxx: Pulling fs layer
yyyyyyy: Pulling fs layer

Version info:

docker-compose version: 1.5.1
Docker version 1.11.0, build 4dc5990

What do I need to change so docker-compose can also pull the image?

I figured out what the difference was: docker works fine when ~/.docker/config.json only contains an 'auth' property. docker-compose also needs an 'email' property. After adding the email, docker-compose was also working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM