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