[英]docker compose up received unexpected HTTP status: 503 Service Unavailable
I am trying to create a nodejs docker app using image node:16.13.1.我正在尝试使用图像节点:16.13.1 创建一个 nodejs docker 应用程序。 (I have tried to use other version).
(我曾尝试使用其他版本)。 There is slow network at my location.
我所在位置的网络速度很慢。 Every time I tried to run
sudo docker-compose up -d
, it took longer time to download one large size intermediate container/image.每次我尝试运行
sudo docker-compose up -d
时,下载一个大型中间容器/图像需要更长的时间。 Till that time, one other image does 3 retries to download, and then suddenly command fails with below error.直到那时,另一个图像重试了 3 次下载,然后突然命令失败并出现以下错误。
received unexpected HTTP status: 503 Service Unavailable收到意外的 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
Sometimes it prints connection reset by peer before 503 error.有时它会在 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 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.