Rancher DesktopのDocker環境でDev Containers環境構築失敗

· ·

Rancher DesktopのDocker環境を利用時にDev Containersを利用した環境構築に失敗 🔗

普段Docker環境はRancher Desktopを利用してい使っているがdev containersを利用して環境をサクッと作ろうとした時にエラーが発生した。

そのエラーの内容がイマイチよく分からない。エラーが発生している箇所を見ると単純に構築コマンドで失敗しているようにしか見えないけれども、エラーのコマンドの最後の方の引数に以下が指定されている。

1
2
3
4
5
6
7
8
Command failed: (中略)
--mount type=volume,source=vscode,target=/vscode,external=true
--mount type=bind,source=\\wsl.localhost\Debian\mnt\wslg\runtime-dir\wayland-0,target=/tmp/vscode-wayland-bead721f-5f26-4361-a6ce-000d5f0a65c3.sock
--skip-post-create
--update-remote-user-uid-default on
--mount-workspace-git-root
--include-configuration
--include-merged-configuration

どうやらwaylandというものが良くないらしい。調べてみるとwaylandはX Window Systemより軽量なディスプレイサーバプロトコルだそうで。Dev Containersの設定画面にあるMount Wayland Socket のチェックボックスをオフにすることで正常に起動することができた。

LLMに質問したり色々迷ってしまったけどなんとか解決出来てよかった

参考 🔗

comments powered by Disqus