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


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では謎に止まっていないコンテナがたくさん表示された