I’m trying to launch Docker image haproxytech/haproxy-debian:s6-3.3 but only gets:
s6-overlay-suexec: fatal: can only run as pid 1
Incus
Client version: 6.21
Server version: 6.21
Any ideas, please?
I’m trying to launch Docker image haproxytech/haproxy-debian:s6-3.3 but only gets:
s6-overlay-suexec: fatal: can only run as pid 1
Incus
Client version: 6.21
Server version: 6.21
Any ideas, please?
I might be wrong but assuming that Incus runs entrypoint.sh as PID 0, you could modify that entrypoint to remove the [exec]( haproxy-docker-debian/3.4/docker-entrypoint.sh at ca3d1378a27fbb2c6c03f0b3be115f4a1eba884d · haproxytech/haproxy-docker-debian · GitHub ). If you don’t want to touch the image, you can set the entrypoint to something like sh -c “haproxy -W -db“ or the variation you need. That should ensure that sh gets PID 0 and haproxy is executed as PID 1.
If the starting PID actually is > 1 instead of 0 (which is more likely) that’s probably worth a bug report on haproxytech’s github: the only reason you might want to ensure you are not PID 0 is to convey the fact you are not a proper init program and you’re not going to reap processes as you should. In a container, whether you are PID 1 or above should not actually matter.