Docker Compose stuck downloading or pulling fs layer

后端 未结 7 1307
忘了有多久
忘了有多久 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:51

    I found a possible workaround. I have my docker engine installed in a Ubuntu 18.04 Snap Environment. I discovered searching in some forums that users relate this behaviors to limitation in the download bandwith. So in the picture below you are going to watch that the components was stucked

    Part of the Downloads stucked and finally I cancelled the process CTRL + C

    I added two parameters or flags in the configuration file that controls the docker daemon behavior: max-concurrent-downloads 1 and max-concurrent-uploads 1 In my case remember, i am working in a snap environment. This file is located in this directory: /var/lib/docker/current/config/daemon.json

    REMEMBER TO STOP ALL DOCKER PROCESS BEFORE THE FILE MODIFICATION, AND CREATE BACKUP OF THE FILE

    Add the two lines in the picture. This is going to help you to limit the downloads to only one by one

    This is the process that helped me to resolve this problem. Download Succesfull

提交回复
热议问题