Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document using host Systemd calls in the container through dbus. #171

Closed
shaunmulligan opened this issue Mar 16, 2016 · 1 comment
Closed
Assignees

Comments

@shaunmulligan
Copy link
Contributor

1.) apt-get install dbus (in your dockerfile)
2.) make sure systemd is running in the container, this is done by setting the environment variable INITSYSTEM = on
3.) run the following command from your start shell script:
DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host_run/dbus/system_bus_socket dbus-send --system --print-reply --dest=org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager.Reboot

@shaunmulligan
Copy link
Contributor Author

fixed by #307

@zwalchuk zwalchuk closed this as completed Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants