open-nomad/drivers/docker
Tim Gross 76284a09a0
docker: move pause container recovery to after SetConfig (#16713)
When we added recovery of pause containers in #16352 we called the recovery
function from the plugin factory function. But in our plugin setup protocol, a
plugin isn't ready for use until we call `SetConfig`. This meant that
recovering pause containers was always done with the default
config. Setting up the Docker client only happens once, so setting the wrong
config in the recovery function also means that all other Docker API calls will
use the default config.

Move the `recoveryPauseContainers` call into the `SetConfig`. Fix the error
handling so that we return any error but also don't log when the context is
canceled, which happens twice during normal startup as we fingerprint the
driver.
2023-03-29 16:20:37 -04:00
..
cmd
docklog deps: remove deprecated net/context (#13932) 2022-07-28 14:46:56 -04:00
test-resources/docker cli: update default redis and use nomad service discovery 2022-05-17 10:24:19 -05:00
util client/fingerprint: correctly fingerprint E/P cores of Apple Silicon chips (#16672) 2023-03-28 08:27:58 -05:00
config.go docker: move pause container recovery to after SetConfig (#16713) 2023-03-29 16:20:37 -04:00
config_test.go docker: create a docker task config setting for disable built-in healthcheck 2022-08-11 10:33:48 -05:00
coordinator.go docker: set force=true on remove image to handle images referenced by multiple tags (#15962) 2023-01-31 07:53:18 -06:00
coordinator_test.go docker: set force=true on remove image to handle images referenced by multiple tags (#15962) 2023-01-31 07:53:18 -06:00
driver.go docker: move pause container recovery to after SetConfig (#16713) 2023-03-29 16:20:37 -04:00
driver_darwin.go client: enable support for cgroups v2 2022-03-23 11:35:27 -05:00
driver_darwin_test.go testing: setting env var incompatible with parallel tests (#14405) 2022-08-30 14:49:03 -04:00
driver_default.go client: enable support for cgroups v2 2022-03-23 11:35:27 -05:00
driver_linux.go client: enable support for cgroups v2 2022-03-23 11:35:27 -05:00
driver_linux_test.go deps: Update ioutil library references to os and io respectively for drivers package (#16331) 2023-03-08 10:31:09 -06:00
driver_test.go deps: Update ioutil library references to os and io respectively for drivers package (#16331) 2023-03-08 10:31:09 -06:00
driver_unix_test.go ci: swap freeport for portal in packages (#15661) 2023-01-03 11:25:20 -06:00
driver_windows.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
driver_windows_test.go docker: update images to reference hashicorpdev Docker organization (#12903) 2022-06-08 15:06:00 -04:00
fingerprint.go docker: disable driver when running as non-root on cgroups v2 hosts (#16063) 2023-02-06 14:09:19 -06:00
fingerprint_test.go docker: disable driver when running as non-root on cgroups v2 hosts (#16063) 2023-02-06 14:09:19 -06:00
handle.go deps: remove deprecated net/context (#13932) 2022-07-28 14:46:56 -04:00
network.go docker: fix bug where network pause containers would be erroneously reconciled (#16352) 2023-03-07 12:17:32 -06:00
network_test.go Ensure infra_image gets proper label used for reconciliation (#15898) 2023-01-30 09:46:45 -06:00
ports.go
ports_test.go
progress.go
progress_test.go
reconcile_cpuset.go chore: remove use of "err" a log line context key for errors. (#14433) 2022-09-01 15:06:10 +02:00
reconcile_cpuset_noop.go client: enable support for cgroups v2 2022-03-23 11:35:27 -05:00
reconcile_cpuset_test.go client: enable support for cgroups v2 2022-03-23 11:35:27 -05:00
reconcile_dangling.go docker: fix bug where network pause containers would be erroneously reconciled (#16352) 2023-03-07 12:17:32 -06:00
reconcile_dangling_test.go docker: fix bug where network pause containers would be erroneously reconciled (#16352) 2023-03-07 12:17:32 -06:00
state.go docker: fix bug where network pause containers would be erroneously reconciled (#16352) 2023-03-07 12:17:32 -06:00
stats.go
stats_test.go
utils.go
utils_test.go
utils_unix_test.go client: enable support for cgroups v2 2022-03-23 11:35:27 -05:00
utils_windows_test.go client: enable support for cgroups v2 2022-03-23 11:35:27 -05:00
win32_volume_parse.go cleanup: purge github.com/pkg/errors 2022-04-01 19:24:02 -05:00