###概要
dockerにてsystemctl daemon-reloadを行ったのですが下記ように表示されます。
Failed to connect to bus: No such file or directory
###試した事
下記のサイトにて同じ症状で回答がついていますがイマイチ理解出来ません。
I assume you start your docker container with something like
docker run -t -i ubuntu:16.04 /bin/bash
The problem now is that your init process PID 1 is /bin/bash, not systemd. Confirm with ps aux.
In addition to that you are missing dbus with would be the way to > communicate. This is where your error message is coming from. But as your > PID 1 is not systemd, it will not help to install dbus.
Best would be to re-think the way you plan to use docker. Do not rely on systemd as a process manager but have the docker container run your desired application in the foreground.
systemctl failed to connect to bus - docker ubuntu:16.04 container
dockerの起動方法についてたしかに/bin/bashで起動させています。
ポートの空きがないので諦めて違うコマンドで代用しろとの内容なのでしょうか。
###質問
systemctlをが必要な際はserviceコマンドで代用していたのですが、daemon-reloadの場合何か代用のコマンドはございますでしょうか?
よろしくお願い致します。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/11/02 12:26