Docker Container Discussion #6058
Replies: 3 comments 14 replies
-
Hi @slominskir, this is the right place to discuss, and congrats on opening the first discussion here 🥇!
|
Beta Was this translation helpful? Give feedback.
-
As an aside, it seems PID 1 responsibilities (signal forwarding and zombie reaping) add complexity to Docker containers and adds a burden for all container developers to understand. The dscontainer init probably shouldn't rely on the runtime engine init process for this since it is optional (opt-in) and non-standard, but at the same time, re-inventing the wheel in every Docker container project out there seems odd. I think dscontainer may already handle this, though it requires some effort to verify it is being done fully. Docker run --init and docker compose init: true are the Docker runtime options. Kubernetes doesn't appear to have a bare init option and it's a controversial topic. PID 1 responsibilities are often handled by systemd when running on Linux VM hosts, but in container it's historically been tini. |
Beta Was this translation helpful? Give feedback.
-
You can't do this. We have to generate some internal id's and set a new directory manager password at startup, as well as being able to create user requested state. So this has to stay at "first run". |
Beta Was this translation helpful? Give feedback.
-
Hi,
Some thoughts on the Docker container "dscontainer":
🎉 Instance setup complete
logs once)./docker-entrypoint-initdb.d
(mariadb, mysql, oracle (defacto), postgres). See Example dirsrv.dscontainer -H
healthcheck indicates healthy before the dirsrv is really completely ready. Well, unless you start dscontainer during the build to initialize it and get to the🎉 Instance setup complete
. After that it seems the healthcheck is then reliable.Thoughts? Let me know if this is wrong place to discuss this (discussion 1!).
Regards,
Ryan
Beta Was this translation helpful? Give feedback.
All reactions