moby/integration/networking
Rob Murray fde80fe2e7 Restore the SetKey prestart hook.
Partially reverts 0046b16 "daemon: set libnetwork sandbox key w/o OCI hook"

Running SetKey to store the OCI Sandbox key after task creation, rather
than from the OCI prestart hook, meant it happened after sysctl settings
were applied by the runtime - which was the intention, we wanted to
complete Sandbox configuration after IPv6 had been disabled by a sysctl
if that was going to happen.

But, it meant '--sysctl' options for a specfic network interface caused
container task creation to fail, because the interface is only moved into
the network namespace during SetKey.

This change restores the SetKey prestart hook, and regenerates config
files that depend on the container's support for IPv6 after the task has
been created. It also adds a regression test that makes sure it's possible
to set an interface-specfic sysctl.

Signed-off-by: Rob Murray <rob.murray@docker.com>
2024-03-25 19:35:55 +00:00
..
bridge_test.go Restore the SetKey prestart hook. 2024-03-25 19:35:55 +00:00
etchosts_test.go Detect IPv6 support in containers. 2024-01-19 20:24:07 +00:00
mac_addr_test.go Don't create endpoint config for MAC addr config migration 2024-02-29 17:02:19 +00:00
main_test.go integration: Add a new networking integration test suite 2023-11-03 09:58:50 +01:00
resolvconf_test.go libnet: Don't forward to upstream resolvers on internal nw 2024-03-14 17:46:48 +00:00