Hi Lennart, the ContainerInterface says: "The container manager should set $container_uuid= as environment variable for the container's PID 1 to the container UUID it wants to set."
I had expected that to be implemented by not resetting this environment variable when starting whichever service file is running systemd-machine-id-setup. I might look into this, but I won't promise anything. Best Regards, Tobias On Mon, Oct 26, 2015 at 11:32 AM, Lennart Poettering <[email protected]> wrote: > On Sun, 25.10.15 09:30, Peter Paule ([email protected]) wrote: > >> Hi Tobias, >> >> > Most non-trivial docker images need that. Should I open a feature request >> >> that makes sense. I asked the same some time ago. It's on their >> TODO-list, but at that time they didn't use Github for their feature >> requests. See https://github.com/systemd/systemd/blob/master/TODO#L60. >> Please ping me, if you opened the FR/PR. > > Yeah, I'd be happy to take a patch that adds "PassEnvironment=" or so > that may be used to import select PID1 env vars into a service > environment. > > But this really should be opt-in and whitelested, to ensure that > service environments are clean by default, and people explicit pick > what they want inherited and what not. > > Lennart > > -- > Lennart Poettering, Red Hat > _______________________________________________ > systemd-devel mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/systemd-devel _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
