garethr-docker
garethr-docker copied to clipboard
systemd files exceeding MAX_LINE
─┬ garethr-docker (v5.3.0) Puppet 4.8.1
Due to the concatenation of the environment variables the max line length supported by systemd is exceeded when multiple environment variables are used. This causes strange errors in executing the puppet file that give no hint to the root cause. To prevent that every environment variable should be in a single line.
systemd bug upstream https://github.com/systemd/systemd/issues/3302 as well as discussion on coreos fleet on hitting the issue https://github.com/coreos/fleet/issues/992.
I believe the problem is not limited to env variables, but because all docker_run_flags are concatenated.
If this is impacting you with env vars, the workaround is to place them into an file and use envfile => <filename> as a way of avoiding building the really long line.
Still all docker_run_flags should probably be parsed to be on separate lines.
I suspect this can be closed.