Re: [systemd-devel] Connect /usr/bin/init to docker container's STDOUT/STDIN

2022-09-30 Thread Nicola Mori
Thanks for your insights. I have been able to workaround the problem with a dirty hack: - use this script as ENTRYPOINT: # Start a long-running process to keep the container pipes open sleep infinity < /proc/1/fd/0 > /proc/1/fd/1 2>&1 & # Save the long-running PID on file ps aux | grep

Re: [systemd-devel] Connect /usr/bin/init to docker container's STDOUT/STDIN

2022-09-30 Thread Lennart Poettering
On Do, 29.09.22 19:42, Nicola Mori (nicolam...@aol.com) wrote: > So I believe this problem might have been introduced by a systemd version > subsequent to 219 and that hopefully it might be fixed somehow by means of > e.g. proper configuration of the container/environment, but I need some >

Re: [systemd-devel] Connect /usr/bin/init to docker container's STDOUT/STDIN

2022-09-30 Thread Kai Lueke
Hi, On Thu, Sep 29, 2022 at 07:42:45PM +0200, Nicola Mori wrote: > Hi, > 3) Gitlab CI needs a shell running inside the container and attached to the > container's STDIN/STDOUT maybe it helps, when I did something similar the behavior of passing "-it" to "docker run" or not could be unified by