Hello there,
I get the error described in the title when I execute systemctl in a docker container launcher with Ansible docker module. Thus, I cannot manage services in the docker container (eg. satrt/stop/reload nginx service …etc.)
How can I avoid this issue when launching a docker container with Andible ?
You have systemd installed in the container but it is not really managing the services (though the container pretends it does). The easy solution is removing systemd from the container to stop confusing the detection.