LoginSignup
24
23

More than 5 years have passed since last update.

Failed to get D-Bus connection: No connection to service manager.の対処

Last updated at Posted at 2014-07-11

参考

Failed to get D-Bus connection: No connection to service manager.

bash-4.2# systemctl
Failed to get D-Bus connection: No connection to service manager.

対処方法

  • 特権モードにする(--privileged)
  • コンテナで起動されるコマンドは/sbin/initにする
sudo docker run --privileged -d -p 80:80 --name httpd1 tukiyo3/centos-ja:7.0 /sbin/init
nsenterを使用してコンテナに入る。
sudo nsenter -t $(sudo docker inspect --format '{{.State.Pid}}' httpd1) -m -u -i -n -p /bin/sh
  • これでsystemctlが使える。

その他の方法

24
23
1

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
24
23