Docker Compose卡住了下载或拉入fs层 [英] Docker Compose stuck downloading or pulling fs layer

查看:260
本文介绍了Docker Compose卡住了下载或拉入fs层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了最新的Mac版Docker,并且遇到了一个问题,其中 docker-compose up 停留在下载状态,其中一个容器:

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 containers:

± |master ✗| → docker-compose up --build
Pulling container (repo.io/company/container:prod)...
prod: Pulling from company/container
somehash: Already exists
somehash: Already exists
somehash: Already exists
somehash: Already exists
somehash: Pulling fs layer
somehash: Already exists
somehash: Already exists
somehash: Downloading [=================================================> ] 234.6 MB/239.3 MB
somehash: Download complete
somehash: Download complete

^^这实际上就是我的命令行上的样子。停止和启动都无济于事,它会立即输出相同的输出。

^^ this is literally what it looks like on my command line. Stopping and starting hasn't helped, it immediately outputs this same output.

我尝试了 rm 容器,但我猜它尚不存在,它返回输出没有停止的容器-force-recreate 也被卡在同一位置。也许我不是在寻找正确的术语,但是我没有找到有用的尝试-任何指针?

I've tried to rm the container but I guess it doesn't yet exist, it returns the output No stopped containers. --force-recreate also gets stuck in the same place. And perhaps I'm not googling for the right terminology but I haven't found anything useful to try - any pointers?

推荐答案

我只需要重启Docker。

I just needed to restart Docker.

Linux用户可以使用 sudo服务docker restart

Linux users can use sudo service docker restart.

Mac OS的Docker在OS X工具栏的Docker小部件中有一个方便的按钮:

Docker for Mac has a handy button for this in the Docker widget in the OS X toolbar:

如果您正巧使用Docker Toolkit,请尝试 docker-machine restart

If you happen to be using Docker Toolkit try docker-machine restart.

这篇关于Docker Compose卡住了下载或拉入fs层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆