docker-compose.yml可以指定本地镜像吗,我发现去docker.io拉取镜像太慢
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
仅有的幸福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"