mirror of https://github.com/docker/compose.git
f94cb49062
We cannot guarantee the exact value of `CapEff` across environments, and this test has started failing some places, e.g. Docker Desktop, and now GitHub Actions (likely due to a kernel upgrade on the runners or similar). By setting `privileged: true` on the build, we're asking for the `security.insecure` entitlement on the build. A safe assumption is that will include `CAP_SYS_ADMIN`, which won't be present otherwise, so mask the `CapEff` value and check for that. It's worth noting that realistically, the build won't even be able to complete without the correct entitlement, since the `Dockerfile` uses `RUN --security=insecure`, so this is really an additional sanity check. Signed-off-by: Milas Bowman <milas.bowman@docker.com> |
||
---|---|---|
.. | ||
fixtures | ||
assert.go | ||
build_test.go | ||
cancel_test.go | ||
compose_environment_test.go | ||
compose_exec_test.go | ||
compose_run_test.go | ||
compose_test.go | ||
compose_up_test.go | ||
cp_test.go | ||
ddev_test.go | ||
e2e_config_plugin.go | ||
e2e_config_standalone.go | ||
framework.go | ||
ipc_test.go | ||
logs_test.go | ||
main_test.go | ||
metrics_test.go | ||
networks_test.go | ||
pause_test.go | ||
profiles_test.go | ||
ps_test.go | ||
pull_test.go | ||
recreate_no_deps_test.go | ||
restart_test.go | ||
secrets_test.go | ||
start_stop_test.go | ||
up_test.go | ||
volumes_test.go | ||
wait_test.go | ||
watch_test.go |