LoginSignup
4
4

More than 5 years have passed since last update.

dockerが起動しない(OCI runtime create failed: container_linux.go:344)

Posted at

下記のようなエラーが出た。

ERROR: for swagger-api  Cannot start service swagger-api: OCI runtime create failed: container_linux.go:344: starting container process caused "process_linux.go:424: container init caused \"rootfs_linux.go:58: mounting \\\"xxx\\\" to rootfs \\\"/var/lib/docker/overlay2/6ef408c4141797a8f67548dd18c9abf605b44b3caa23b55821543a9b66e96b9c/merged\\\" at \\\"/var/lib/docker/overlay2/6ef408c4141797a8f67548dd18c9abf605b44b3caa23b55821543a9b66e96b9c/merged/xxx\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: Encountered errors while bringing up the project.

docker for macを再起動しても駄目だった。

docker-compose down
docker container prune

このコマンドで原因は不明だが治った。
docker-compose downでは謎に止まっていないコンテナがたくさん表示された

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4