search

Home  >  Q&A  >  body text

docker-compose.yml可以指定本地镜像吗,我发现去docker.io拉取镜像太慢

docker-compose.yml可以指定本地镜像吗,我发现去docker.io拉取镜像太慢

给我你的怀抱给我你的怀抱2773 days ago1490

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-04-26 09:03:31

    Only images that are not available locally will be pulled from .io. In addition, if the download is slow, you can use an accelerator. For example, Alibaba Cloud and DaoCloud provide accelerators

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-04-26 09:03:31

    I found that using Alibaba’s accelerator is also very slow. I tried it myself and found that it works by specifying the address directly


    version: '2'
    services:
    dog:

    image: hub.c.163.com/public/nginx:1.2.1
    ports: 
      - "8080:80"

    cat:

    image: hub.c.163.com/public/nginx:1.2.1
    ports:
      - "8081:80"
    

    reply
    0
  • Cancelreply