j8r / dockerfiles

Repository for my dockerfiles
https://hub.docker.com/u/jrei
ISC License
121 stars 46 forks source link

Using the images with docker compose doesn't work #12

Closed kgatman closed 3 years ago

kgatman commented 3 years ago

Tried to use jrei/systemd-centos:7 with docker compose but got the error "Failed to get D-Bus connection: Operation not permitted "

j8r commented 3 years ago

Have you added the options described at https://github.com/j8r/dockerfiles/blob/master/systemd/centos/README.md?

kgatman commented 3 years ago

Have you added the options described at https://github.com/j8r/dockerfiles/blob/master/systemd/centos/README.md?

yah, the commands run well for a single container. But if I try to run a multi-container set up like this, it goes back to the same old error.

kgatman commented 3 years ago

Got it! I used privileged: true and it worked!

j8r commented 3 years ago

Yes, privileged works. You can also try to add

tmpfs:
  - /run
  - /tmp
  - /run/lock