0

I am trying to reboot the host while I am inside one of the docker containers

a simple

systemctl reboot or sudo reboot

gives "System has not been booted with systemd as init system (PID 1). Can't operate. "

I tried adding

/var/run/systemd: docker run  --name nw -it --rm  -v /var/run/systemd:/var/run/systemd debian:18.04

to my docker run in the specific container I trying to reboot the host from but still no luck

larsks
  • 277,717
  • 41
  • 399
  • 399
mohh ash
  • 1
  • 1

0 Answers0