0
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 1 year has passed since last update.

Failed to get D-Bus connection: No such file or directory

Last updated at Posted at 2023-05-28

以前作ったシステムをメンテしようとしたとき
Dockerコンテナをdocker-compose up -dで立ち上げようとしたら
DockerfileでsystemctlでenableにしたHTTPDもmysqldが起動してねぇ・・

あれ?手動でapache立ち上げてたかな?と思い
コンテナ内に入って

# systemctl start httpd
Failed to get D-Bus connection: No such file or directory

またこれだよ・・
まいどまいど苦しめられる問題。。

前回の記憶が無いのでググって試したがうまく行かず
たどり着いたのはこの記事!

~/Library/Group\ Containers/group.com.docker/settings.json
内の設定を

  "deprecatedCgroupv1": true,

に書き換えてDocker Desctopからrestartすることで
再度docker-compose up -dしたら立ち上がりました!

ほんとありがたい。

systemctlを使わずにapacheやmysqldを立ち上げるのってどうしたらいいのかな?
って思うけど、そもそもcentos7でゴニョゴニョしたdockerイメージを作ること事態が
多分NGなんだろうな・・
古い人間だから”サーバを立ち上げる”ってことをDockerにやらせてるからなぁ・・

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