繁体   English   中英

docker 组合收到意外的 HTTP 状态:503 服务不可用

[英]docker compose up received unexpected HTTP status: 503 Service Unavailable

我正在尝试使用图像节点:16.13.1 创建一个 nodejs docker 应用程序。 (我曾尝试使用其他版本)。 我所在位置的网络速度很慢。 每次我尝试运行sudo docker-compose up -d时,下载一个大型中间容器/图像需要更长的时间。 直到那时,另一个图像重试了 3 次下载,然后突然命令失败并出现以下错误。

收到意外的 HTTP 状态:503 服务不可用

Building node-app
Sending build context to Docker daemon  3.556MB
Step 1/8 : FROM node:16.13.1
16.13.1: Pulling from library/node
9b99af5931b3: Pull complete
b6013b3e77fe: Downloading [=============================================>     ]  7.097MB/7.834MB
bbced17b6899: Download complete
8b609dabefa8: Download complete
50544bfef33d: Downloading [=================================================> ]    **189MB/192.4MB**
fea3f8b8e075: Download complete
c81dbcaf60d9: Download complete
7b0e069b3bda: Downloading
29ac9271f536: Waiting
received unexpected HTTP status: 503 Service Unavailable
ERROR: Service 'node-app' failed to build : Build failed

有时它会在 503 错误之前打印由对等方重置的连接。

read tcp <my-ip>:36140->104.18.122.25:443: read: connection reset by peer

Looks like its a docker instability of some restriction of your network (i test it here at 2 computers), you can also try to flush DNS from your computer, this DNS error already occurs in docker according this discussion https://forums.docker .com/t/docker-pull-503-service-unavailabl/2401

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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