解決VSCode使用DevContainer遭遇問題:System has not been booted with systemd as init system (PID 1)

要解決System has not been booted with systemd as init system (PID 1)的問題,可以參考https://github.com/microsoft/vscode-remote-release/issues/3919

在devcontainer.json的設定中加入overrideCommand為false,並在設定可運行的entrypoint。

以我遭遇到此問題的centos 8 stream的container開發環境來說,就是在devcontainer.json寫下這些設定

"overrideCommand": false,
"runArgs": [
"--entrypoint=/sbin/init"
],

留言