Docker Compose stuck downloading or pulling fs layer

后端 未结 7 1521
忘了有多久
忘了有多久 2021-02-05 06:34

I have the latest Docker for Mac installed, and I\'m running into a problem where it appears that docker-compose up is stuck in a Downloading state for one of the c

7条回答
  •  没有蜡笔的小新
    2021-02-05 06:58

    I faced the same problem! Restarting the service didn't help, downloading again didn't help. It used to get stuck at random instances leaving me with no option but to kill the pull request.

    One thing which worked for me was to download 1 file at a time. For Ubuntu users, you can use the following steps:

    1. Stop the service:

      sudo service docker stop
      
    2. Start docker with max concurrent download set as 1:

      sudo dockerd --max-concurrent-downloads 1
      
    3. Download the required image:

      sudo docker pull 
      
    4. Download images, after that stop the terminal and start the daemon again as it was earlier.

      sudo service docker start
      

提交回复
热议问题