您用的最新的代码么 docker-k8s-devops/chapter6/labs/example-voting-app
我刚试了试,没有问题的,我感觉您的是网络问题,有些包没有下载成功导致的
(base) ➜ ~ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
35b2abb08765 example-voting-app_result-app "node server.js" About a minute ago Up About a minute 0.0.0.0:5001->80/tcp example-voting-app_result-app_1
aef5387a27fd example-voting-app_voting-app "python app.py" About a minute ago Up About a minute 0.0.0.0:5000->80/tcp example-voting-app_voting-app_1
9626282c0801 postgres:9.4 "docker-entrypoint.s…" About a minute ago Up About a minute 5432/tcp example-voting-app_db_1
52c37b198058 redis "docker-entrypoint.s…" About a minute ago Up About a minute 0.0.0.0:32768->6379/tcp example-voting-app_redis_1
(base) ➜ ~ date
Fri Apr 10 21:58:37 CEST 2020
(base) ➜ ~