Rob Murray
06afbe9618
Check nftables is enabled before applying updates
...
Signed-off-by: Rob Murray <rob.murray@docker.com >
2025-05-14 10:38:11 +01:00
Rob Murray
976f855f68
Add OTEL span for nftables updates
...
Signed-off-by: Rob Murray <rob.murray@docker.com >
2025-05-14 10:38:11 +01:00
Rob Murray
9f1e3ae306
Merge pull request #49861 from robmry/bridge_test_firewaller
...
Unit test the bridge driver in terms of its firewaller
2025-05-14 09:30:02 +01:00
Rob Murray
ba0ad9e80f
Unit test the bridge driver in terms of its firewaller
...
Don't inspect iptables rules, because the driver's Firewaller won't
always be an iptabler.
Signed-off-by: Rob Murray <rob.murray@docker.com >
2025-05-13 18:27:55 +01:00
Paweł Gronowski
294f0c36e4
Merge pull request #49943 from thaJeztah/cleanupContainer_cleanup_errs
...
daemon: rmLink, cleanupContainer: cleanup errors
2025-05-13 12:20:28 +00:00
Paweł Gronowski
d42d79dceb
Merge pull request #49924 from dmcgowan/api-system-build-backend
...
Create api interface to define build usage backend
2025-05-13 11:41:49 +00:00
Paweł Gronowski
10ac996d64
Merge pull request #49960 from thaJeztah/TestPruneDontDeleteUsedDangling_noshadow
...
TestPruneDontDeleteUsedDangling: rename var that shadowed import
2025-05-13 11:19:23 +00:00
Paweł Gronowski
0d6d4456ea
Merge pull request #49958 from thaJeztah/container_state_defer
...
container: use defer for locks
2025-05-13 11:02:25 +00:00
Paweł Gronowski
7828a65aeb
Merge pull request #49956 from thaJeztah/container_state_godoc
...
container: update GoDoc for State
2025-05-13 10:18:37 +00:00
Paweł Gronowski
3af89f31f6
Merge pull request #49959 from thaJeztah/testing_use_native_tempdir_step2
...
use Go's native t.TempDir() in tests (step 2)
2025-05-13 09:07:41 +00:00
Sebastiaan van Stijn
d89cd570f0
Merge pull request #49867 from robmry/make_integration-cli_iptablesless
...
Remove/replace integration-cli tests that use iptables directly
2025-05-12 20:26:04 +02:00
Sebastiaan van Stijn
17702d9dcb
Merge pull request #49862 from robmry/test_iptabler_params
...
Test iptabler params
2025-05-12 20:09:01 +02:00
Rob Murray
37259540e9
Remove/replace integration-cli tests that use iptables directly
...
In preparation for testing with an nftables backend.
Signed-off-by: Rob Murray <rob.murray@docker.com >
2025-05-12 17:51:59 +01:00
Rob Murray
daeb080ff1
Test Iptabler params
...
Signed-off-by: Rob Murray <rob.murray@docker.com >
2025-05-12 17:30:40 +01:00
Sebastiaan van Stijn
ea2e147c4c
TestPruneDontDeleteUsedDangling: rename var that shadowed import
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 18:03:58 +02:00
Rob Murray
cb38cc0fdd
Merge pull request #49860 from robmry/firewaller_interface
...
Firewaller interface
2025-05-12 14:18:16 +01:00
Sebastiaan van Stijn
e824fed281
Merge pull request #49937 from corhere/libn/fix-49402
...
libn/networkdb: fix data race in GetTableByNetwork
2025-05-12 14:48:37 +02:00
Sebastiaan van Stijn
99368eeba2
Merge pull request #49948 from corhere/process-all-attachments
...
Fix possible overlapping IPs when ingressNA == nil
2025-05-12 14:46:36 +02:00
Sebastiaan van Stijn
02e800dcbb
plugin: use t.TempDir
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 14:35:24 +02:00
Sebastiaan van Stijn
57b27f2e9e
image: use t.TempDir and rename vars that shadowed
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 14:35:24 +02:00
Sebastiaan van Stijn
08c5ebe040
layer: use t.TempDir and minor cleanups
...
- Use strings.Cut
- Use strconv instead of fmt.Sprintf
- Rename vars that shadowed
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 14:35:21 +02:00
Sebastiaan van Stijn
239bf178b8
Merge pull request #49845 from thaJeztah/testing_use_native_tempdir_step1
...
use Go's native t.TempDir() in tests (step 1)
2025-05-12 14:34:58 +02:00
Sebastiaan van Stijn
f84694ebdc
container: use defer for locks
...
Makes the code slightly more idiomatic. These paths avoided uses of
defer because they came with an overhead in older versions of Go,
but this overhead should now be neglectible.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 13:17:18 +02:00
Paweł Gronowski
23825bc1fd
Merge pull request #49893 from thaJeztah/move_more_container_types
...
container: deprecate IsValidHealthString
2025-05-12 10:51:10 +00:00
Sebastiaan van Stijn
4b6a9d23af
cmd/dockerd/trap: use t.TempDir
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 12:14:35 +02:00
Paweł Gronowski
4c189b8fe8
Merge pull request #49174 from thaJeztah/bump_golang_1.24
...
update to go1.24.3
2025-05-12 10:10:05 +00:00
Sebastiaan van Stijn
ea37a1f040
integration/build: use t.TempDir
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 12:09:39 +02:00
Sebastiaan van Stijn
900bd88848
internal/directory: use t.TempDir
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 12:05:50 +02:00
Sebastiaan van Stijn
46baf7deb0
distribution: use t.TempDir
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 12:05:50 +02:00
Sebastiaan van Stijn
1b4ba20708
distribution/metadata: use t.TempDir, rename var that shadowed
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 12:05:50 +02:00
Sebastiaan van Stijn
735ccfbc6f
pkg/stack: use t.TempDir
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 12:05:50 +02:00
Sebastiaan van Stijn
72a11b84d4
testutil/fakestorage: use t.TempDir
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 12:05:50 +02:00
Sebastiaan van Stijn
b38f73afe3
daemon: cleanupContainer: leave decorating container-id/name to caller
...
This function was decorating errors with the container name, but within its
own context wouldn't be aware how the delete was referenced. This could
result in a container deleted by "ID" to produce an error with the container
Name. Some errors were also decorated before storing as "removalError" on
the container object itself.
The removalError was originally added in f963500c54 ,
before which the error was returned. Now that it's part of the container's
state itself, adding the container's ID is probably not very useful.
This patch reduces the scope of decorating the errors to the error-condition
itself, leaving it to the caller to decorate them further with the container
ID or Name (if any).
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 11:05:39 +02:00
Sebastiaan van Stijn
d44b2e4bd7
daemon: cleanupContainer: use state-fields instead of string form
...
This code only needed to know whether the container was paused; for other
states ("restarting", "running"), it's still used to be included in the
error string.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 11:02:57 +02:00
Sebastiaan van Stijn
4a00ce10fa
daemon: rmLink, cleanupContainer: rename args that shadowed import
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 10:58:50 +02:00
Sebastiaan van Stijn
1cf7d7ea4b
hack/make/.binary: update link to go source for "pie" support
...
Keeping it up to date, in case the situation changes.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 10:31:24 +02:00
Sebastiaan van Stijn
e991c7185d
update to go1.24.3
...
release notes: https://go.dev/doc/go1.24
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 10:31:00 +02:00
Sebastiaan van Stijn
89ee292709
container: update GoDoc for State
...
Better describe that various states are not mutually exclusive.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-05-12 10:28:20 +02:00
Sebastiaan van Stijn
7979b3d46b
Merge pull request #49911 from aaithal/fluentd-write-timeout
...
fluentd: add write timeout log option
2025-05-10 16:12:09 +02:00
Anirudh Aithal
7dae7c54dd
fluentd: add write timeout log option
...
Currently, there's no mechanism to specify a write timeout value for
fluentd connections. This means that writes can forever be blocked if
the downstream connections is unhealthy. This commit makes this value
configurable via a new fluentd log option called "fluentd-write-timeout".
Signed-off-by: Anirudh Aithal <aithal@amazon.com >
2025-05-09 12:32:24 -07:00
Sebastiaan van Stijn
c8db8ca6b2
Merge pull request #49946 from robmry/modprobe_rootless_test_integration
...
Try to load br_netfilter on the test host for rootless test-integration
2025-05-09 20:17:30 +02:00
Sebastiaan van Stijn
31e992cccd
Merge pull request #49944 from thaJeztah/container_fix_waitcondition
...
container: State.Wait(): don't use deprecated type
2025-05-09 20:03:33 +02:00
Sebastiaan van Stijn
97be6333e6
Merge pull request #49939 from corhere/libn/networkdb-broadcast-overflow
...
libn/networkdb: don't exceed broadcast size limit
2025-05-09 19:20:38 +02:00
Cory Snider
56ad941564
Fix possible overlapping IPs when ingressNA == nil
...
Logic was added to the Swarm executor in commit 0d9b0ed678
to clean up managed networks whenever the node's load-balancer IP
address is removed or changed in order to free up the address in the
case where the container fails to start entirely. Unfortunately, due to
an oversight the function returns early if the Swarm is lacking
an ingress network. Remove the early return so that load-balancer IP
addresses for all the other networks are freed as appropriate,
irrespective of whether an ingress network exists in the Swarm.
Signed-off-by: Cory Snider <csnider@mirantis.com >
2025-05-09 12:51:08 -04:00
Rob Murray
dc1d23c646
Revert "rootless: skip tests that need br-netfilter loaded"
...
Shouldn't be needed, the top level Makefile will try to modprobe.
This reverts commit 4c4810e5d2 .
Signed-off-by: Rob Murray <rob.murray@docker.com >
2025-05-09 17:31:38 +01:00
Rob Murray
4b9092aa27
Load br-netfilter for rootless test-integration
...
If kernel module br_netfilter isn't loaded on the test host
before rootless test-integration tests that need it, the
rootless daemon hits a permission error when trying to do
the load. So, try to load the module before going rootless.
Signed-off-by: Rob Murray <rob.murray@docker.com >
2025-05-09 17:31:38 +01:00
Sebastiaan van Stijn
62694ab30c
Merge pull request #49813 from p5/systemd-sysusers
...
Add systemd-sysusers contrib configuration
2025-05-09 18:25:29 +02:00
Sebastiaan van Stijn
9b19172c7f
Merge pull request #49868 from thaJeztah/exec_validate_user
...
docker exec: fail early on exec create if specified user doesn't exist
2025-05-09 17:00:50 +02:00
Rob Murray
f848191e40
Merge pull request #49901 from robmry/active_endpoints_error_error
...
Active endpoints error error
2025-05-09 09:29:33 +01:00
Tianon Gravi
6f477852a1
Merge pull request #47366 from thaJeztah/less_output_vars
...
reduce named (error)-returns and some minor linting-fixes
2025-05-08 21:18:27 +00:00