app-emulation/docker-18.06.1 installs /etc/init.d/docker which includes calls to ulimit: ulimit -n 1048576 and ulimit -u unlimited There is a QA notice issued when the package is emerged: * QA Notice: shell script appears to use non-POSIX feature(s): * possible bashism in /etc/init.d/docker line 17 (ulimit): * ulimit -n 1048576 * possible bashism in /etc/init.d/docker line 21 (ulimit): * ulimit -u unlimited And the ulimit -u call causes an error (which is ignored) when the init script is run: # rc-service docker start docker |/lib/rc/sh/openrc-run.sh: 21: ulimit: Illegal option -u docker | * Starting docker ... # /bin/bash is a symlink to dash on this system, and the dash man page documents ulimit -n, but not ulimit -u. The bash man page lists ulimit -n and ulimit -u.
> /bin/bash is a symlink to dash on this system, Sorry. Of course, I didn’t mean /bin/bash, but /bin/sh: /bin/sh -> dash
this has been fixed.