I would like to run a docker container which will have the ability to run systemctl
commands on its host.
Following this question I didn't find a solution that would work for me.
I have no hard limits on the docker base image, so using ubuntu-16.04 docker image for an ubuntu-16.04 host and ubuntu-18.04 docker image for an ubuntu-18.04 host is totally acceptable.
Best Answer
After some investigation I was able to run a docker container with the ability to run
systemctl
command.The following worked when running on an ubuntu:16.04 host:
And on ubuntu:18.04 host:
Since
systemctl
doesn't come with this image