简体   繁体   English

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

[英]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.

相关问题 OpenShift:503服务不可用 - OpenShift: 503 Service Unavailable Heroku 503 服务不可用 - Heroku 503 Service Unavailable AWS 503服务暂时不可用 - AWS 503 Service Temporarily Unavailable AWS Lambda:503 服务不可用 - AWS Lambda: 503 Service Unavailable grpc 客户端-流式 Java 客户端获取 io.grpc.StatusRuntimeException: UNAVAILABLE: HTTP 状态代码 503 - grpc Client-Streaming Java Client gets io.grpc.StatusRuntimeException: UNAVAILABLE: HTTP status code 503 加载资源失败:服务器响应状态为 503(服务不可用) favicon.ico - Failed to load resource: the server responded with a status of 503 (Service Unavailable) favicon.ico Heroku:加载资源失败:服务器响应状态为 503(服务不可用)/favicon.ico - Heroku: Failed to load resource: the server responded with a status of 503 (Service Unavailable) /favicon.ico 服务器错误:`GET http://127.0.0.1:8081` 导致 `503 Service Unavailable` 响应: - Server error: `GET http://127.0.0.1:8081` resulted in a `503 Service Unavailable` response: 如何修复 503(服务不可用)? - How can I fix 503 (service unavailable)? Docker compose继续退出MERN堆栈的Web服务,状态为1 - Docker compose keeps on exiting the web service of MERN stack with status 1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM