mirror of
https://github.com/moby/moby.git
synced 2026-08-09 17:39:58 +00:00
The Optional Features section called check_flags directly, so a missing optional kernel flag (USER_NS, SECCOMP, the ext3/ext4 filesystem options, etc.) sets EXITCODE=1 and the script exits non-zero, even when every "Generally Necessary" flag is present. This breaks CI checks that rely on the exit code to gate hosts where Docker is actually expected to run. Mirror the pattern already used for Storage Drivers (L385-411): save the running EXITCODE before the Optional Features section, run the optional checks with a fresh EXITCODE, then restore it before the Network Drivers section. A dedicated variable name (optional_features_exit) avoids a collision with the CODE variable already used inside the kernel-<5.8 MEMCG_SWAP branch (L267-272). Signed-off-by: Takumi Akasaka <takumiakasaka1231@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
The contrib directory contains scripts, images, and other helpful things
which are not part of the core docker distribution. Please note that they
could be out of date, since they do not receive the same attention as the
rest of the repository.