Docker撰写命令经常超时
Docker Compose up command times out frequently
我正在为 Windows 使用 Docker 并且有一组图像 已经在我的 docker 主机上构建。当我尝试使用 docker-compose up -d
命令启动我的环境时,我经常遇到不同容器的 i/o 超时错误。通常,重试会有所帮助,但我正在尝试自动执行此操作,无法期望重新 运行 整个管道。
版本:
Docker version 18.09.0, build 4d60db4
docker-compose version 1.23.1, build b02f1306
命令行日志:
C:\workspace\AK_DOCKER_RISK\docker-compose>docker-compose up -d
Creating risk-svc ...
Creating risk-svc ... done
Creating risk-prc ...
Creating risk-web ...
Creating risk-web ... error
ERROR: for risk-web b'i/o timeout'
Creating risk-prc ... done
ERROR: for web b'i/o timeout'
Encountered errors while bringing up the project.
该错误是随机观察到的,有时是针对 svc、web 或 prc。
有人可以解释为什么会出现此错误,更重要的是 - 如何解决此问题?
这是我的docker-compose.yml文件:
version: '3'
services:
web:
image: iis-core-web:1910.252
build:
context: .
dockerfile: ./web/Dockerfile
container_name: risk-web
ports:
- "9111:8080"
tty: true
links:
- svc
volumes:
- ../RiskLogs/web:c:/RiskLogs
svc:
image: iis-core-svc:1910.252
build:
context: .
dockerfile: ./svc/Dockerfile
container_name: risk-svc
ports:
- "9112:8080"
tty: true
volumes:
- ../RiskLogs/svc:c:/RiskLogs
prc:
image: iis-core-prc:1910.252
build:
context: .
dockerfile: ./prc/Dockerfile
container_name: risk-prc
tty: true
links:
- svc
volumes:
- ../RiskLogs/prc:c:/RiskLogs
# prevent creation of new network and use existing nat
networks:
default:
external:
name: nat
链接是一项旧功能。根据文档尝试用户定义的网络:
我正在为 Windows 使用 Docker 并且有一组图像 已经在我的 docker 主机上构建。当我尝试使用 docker-compose up -d
命令启动我的环境时,我经常遇到不同容器的 i/o 超时错误。通常,重试会有所帮助,但我正在尝试自动执行此操作,无法期望重新 运行 整个管道。
版本:
Docker version 18.09.0, build 4d60db4
docker-compose version 1.23.1, build b02f1306
命令行日志:
C:\workspace\AK_DOCKER_RISK\docker-compose>docker-compose up -d
Creating risk-svc ...
Creating risk-svc ... done
Creating risk-prc ...
Creating risk-web ...
Creating risk-web ... error
ERROR: for risk-web b'i/o timeout'
Creating risk-prc ... done
ERROR: for web b'i/o timeout'
Encountered errors while bringing up the project.
该错误是随机观察到的,有时是针对 svc、web 或 prc。
有人可以解释为什么会出现此错误,更重要的是 - 如何解决此问题?
这是我的docker-compose.yml文件:
version: '3'
services:
web:
image: iis-core-web:1910.252
build:
context: .
dockerfile: ./web/Dockerfile
container_name: risk-web
ports:
- "9111:8080"
tty: true
links:
- svc
volumes:
- ../RiskLogs/web:c:/RiskLogs
svc:
image: iis-core-svc:1910.252
build:
context: .
dockerfile: ./svc/Dockerfile
container_name: risk-svc
ports:
- "9112:8080"
tty: true
volumes:
- ../RiskLogs/svc:c:/RiskLogs
prc:
image: iis-core-prc:1910.252
build:
context: .
dockerfile: ./prc/Dockerfile
container_name: risk-prc
tty: true
links:
- svc
volumes:
- ../RiskLogs/prc:c:/RiskLogs
# prevent creation of new network and use existing nat
networks:
default:
external:
name: nat
链接是一项旧功能。根据文档尝试用户定义的网络: