open-nomad/drivers/docker
Seth Hoenig 2868a45982
docker: configure restart policy for networking pause container (#15732)
This PR modifies the configuration of the networking pause contaier to include
the "unless-stopped" restart policy. The pause container should always be
restored into a running state until Nomad itself issues a stop command for the
container.

This is not a _perfect_ fix for #12216 but it should cover the 99% use case -
where a pause container gets accidently stopped / killed for some reason. There
is still a possibility where the pause container and main task container are
stopped and started in the order where the bad behavior persists, but this is
fundamentally unavoidable due to how docker itself abstracts and manages the
underlying network namespace referenced by the containers.

Closes #12216
2023-01-10 07:50:09 -06:00
..
cmd cleanup driver eventor goroutines 2020-05-26 11:04:04 -04:00
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: enable support for cgroups v2 2022-03-23 11:35:27 -05:00
config.go docker: create a docker task config setting for disable built-in healthcheck 2022-08-11 10:33:48 -05: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 Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
coordinator_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
driver.go docker: create a docker task config setting for disable built-in healthcheck 2022-08-11 10:33:48 -05: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 ci: swap freeport for portal in packages (#15661) 2023-01-03 11:25:20 -06:00
driver_test.go ci: swap freeport for portal in packages (#15661) 2023-01-03 11:25:20 -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 cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
fingerprint_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
handle.go deps: remove deprecated net/context (#13932) 2022-07-28 14:46:56 -04:00
network.go docker: configure restart policy for networking pause container (#15732) 2023-01-10 07:50:09 -06:00
network_test.go docker: configure restart policy for networking pause container (#15732) 2023-01-10 07:50:09 -06:00
ports.go drivers/docker: support mapping multiple host ports to the same container port 2021-02-02 22:54:23 -05:00
ports_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
progress.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
progress_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
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 client: enable support for cgroups v2 2022-03-23 11:35:27 -05:00
reconcile_dangling_test.go ci: swap freeport for portal in packages (#15661) 2023-01-03 11:25:20 -06:00
state.go docker: started work on porting docker driver to new plugin framework 2018-11-19 22:59:15 -05:00
stats.go cleanup: prevent leaks from time.After 2022-02-02 14:32:26 -06:00
stats_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
utils.go fix: load token in docker auth config 2021-07-22 22:27:29 +02:00
utils_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
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