[lxc-users] Container startup hook arguments

Andrey Repin anrdaemon at yandex.ru
Tue Oct 3 12:01:27 UTC 2017


Greetings, Serge Hallyn!

> Since the start, lxc container startup hooks have gotten some redundant
> information as command line arguments, which is also available as environment variables.

> Is anyone making use of that? I'm wondering whether any existing
> installations would have broken scripts if we get rid of those.

> https://github.com/lxc/lxc/issues/1766 is one sensible request to stsending
> these args, and I suspect that CNI binaries will also not like them.

> Removing them is probably 3.0 material, as even if noone replies saying
> they use them, our community doesn't exactly work like that... but it sure would be nice to drop them :) 

Consider me +1 to that.
If your script needs to know its environment, it should make use of it. Other
than that, the extra arguments unexpectedly passed to the hook are always a
source for potential confusion.


-- 
With best regards,
Andrey Repin
Tuesday, October 3, 2017 14:59:46

Sorry for my terrible english...


More information about the lxc-users mailing list