If tini is compiled with TINI_MINIMAL, the command line parser is bypassed, and it doesn't skip past the "--" that gets passed in by docker --init. This is because getopt() is never called in this case.
This causes docker run to always fail with "exec: --: no such file or directory"
I only discovered this because this is apparently how it is built in this ancient rpm: docker-1.13.1-53.git774336d.el7.centos.x86_64.rpm from CentOS Atomic. Installing a more up-to-date docker rpm that builds it correctly it works fine.
If tini is compiled with TINI_MINIMAL, the command line parser is bypassed, and it doesn't skip past the "--" that gets passed in by
docker --init
. This is becausegetopt()
is never called in this case.This causes docker run to always fail with "exec: --: no such file or directory"
I only discovered this because this is apparently how it is built in this ancient rpm:
docker-1.13.1-53.git774336d.el7.centos.x86_64.rpm
from CentOS Atomic. Installing a more up-to-date docker rpm that builds it correctly it works fine.