open-nomad/drivers
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
..
docker docker: move pause container recovery to after SetConfig (#16713) 2023-03-29 16:20:37 -04:00
exec deps: Update ioutil library references to os and io respectively for drivers package (#16331) 2023-03-08 10:31:09 -06:00
java deps: Update ioutil library references to os and io respectively for drivers package (#16331) 2023-03-08 10:31:09 -06:00
mock deps: Update ioutil library references to os and io respectively for drivers package (#16331) 2023-03-08 10:31:09 -06:00
qemu chore: remove use of "err" a log line context key for errors. (#14433) 2022-09-01 15:06:10 +02:00
rawexec deps: Update ioutil library references to os and io respectively for drivers package (#16331) 2023-03-08 10:31:09 -06:00
shared drivers/exec: Fix handling of capabilities for unprivileged tasks (#16643) 2023-03-28 12:12:55 -04:00