1
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?

More than 5 years have passed since last update.

WSL2をバックエンドとしたDocker DesktopのマウントディレクトリがWindowsTerminalにおいておかしくなる問題(2020/08/29時点で未解決?)

1
Posted at

問題点

"/tmp/docker-desktop/shadowing-mounts/qwertyu123456xxxxxx/mnt/c/Users/" みたいなマウントが起こり非常に不便.なぜかデフォルトのLinuxアプリケーションの方を開くときは問題ないので,なにか不具合があるのは Windows terminal かあるいは Docker Desktop 側であると推測できるが……?

調査

とりあえず「shadowing-mounts」で調べると,次のようなページが出てくる.

解決方法

現状,再現性があやふやな部分も多く,何をどうすればいいか公式の回答はないっぽい.(参照:2020/08/29)

とりあえず解決すると報告されている方法の一つは**「WSLを再起動すること」**であるらしい.これはOS本体を再起動することとは別であることに注意されたい.私も一旦Linux Subsystemを停止し,再度起動することで元通りになった(が,きっとすぐ同様の症状に陥る気がする)

以下の手順でWSL単体を停止→再起動する.

cmd.exe

1. > net stop LxssManager   # 停止
2. > net start LxssManager  # 起動

これで一旦はマウントディレクトリが元通りになるはず.ならない場合は公式の回答を待つのが最善策なように思う.(もし原因解明や再現性が報告できる場合はGithubのIssueへGO~~)

参考文献

[おまけ] LxssManagerとはなんぞやという方へ

1
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
1
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?