docker device or resource busy

docker-compose -f docker-compose.yml up -d  时候报错 device or resource busy

使用 docker-compose down 会导致一些容器异常结束,其状态变为Dead (可以使用查看:docker ps -a -q -f status=dead )。此时继续使用docker-compose up -d 时报错。

....

ERROR: for 5af3bcc2a05d_5af3bcc2a05d_5af3bcc2a05d_client_apiserver Unable to
remove filesystem for
5af3bcc2a05d397f3d2d6e93ebc9770375ainers/5af3bcc2a05d397f3d2d6e93ebc9770375411430149abc7d0d2edac9a82ea42b/shm: device or resource busy


# docker-compose up -d
ERROR: for client_apiserver Unable to remove filesystem for 5af3bcc2a05d397f3d2d6e93ebc9770375411430149abc7d0d2edac9a82ea42b: remove 75411430149abc7d0d2edac9a82ea42b/shm: device or resource busy
ERROR: Encountered errors while bringing up the project.

 

解决方式:
docker rm -f $(docker ps -a -q -f status=dead)
docker-compose -f docker-compose.yml up -d 

  

 

 

posted @ 2018-10-25 15:48  _Goku  阅读(2910)  评论(0编辑  收藏  举报