0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

dockerコンテナが突然立ち上がらなくなった

Posted at

普段WSL2上でDocker Desktopを実行しているのですがある日
いつものようにdockerコンテナを立ち上げようとしたところ、突然の下記エラー

Status 400: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting \"/run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu-20.04/797229c15083f74ce99ba51a1c9a02f9daa82bd038b3763bb45445317f708510\" to rootfs at \"/docker-entrypoint-initdb.d/init.sql\": mount /run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu-20.04/797229c15083f74ce99ba51a1c9a02f9daa82bd038b3763bb45445317f708510:/docker-entrypoint-initdb.d/init.sql (via /proc/self/fd/6), flags: 0x5000: 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

原因ですがdocker desktopの設定のResourcesの「Enables integration with additional distros:」のチェックが外れていました。あとはUbuntu-20.04にもチェックを入れてapply&Restartで問題なく立ち上がりました。
image.png

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?