Reputation: 1
As title suggests, I was interested into making a process start directly on the host, called inside a Docker container.
Do you have any idea on how I could accomplish this goal?
To be more precise, what I want to realize is being able to call systemctl start name.service
inside a docker container, but starting a service defined and enabled in the host.
Upvotes: 0
Views: 24
Reputation: 71
You can see any process in docker container in the hosts processes. But, the process will be isolated from the host.
If you would like to make it possible to call something else, use sockets. For example, sharing docker socket enables creation of docker-in-docker. For your case, you can run the container as privileged and mount systemd.socket
or something like this.
Upvotes: 1