open-nomad/drivers/docker
Seth Hoenig 68894bdc62
docker: disable driver when running as non-root on cgroups v2 hosts (#16063)
* docker: disable driver when running as non-root on cgroups v2 hosts

This PR modifies the docker driver to behave like exec when being run
as a non-root user on a host machine with cgroups v2 enabled. Because
of how cpu resources are managed by the Nomad client, the nomad agent
must be run as root to manage docker-created cgroups.

* cl: update cl
2023-02-06 14:09:19 -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: add option for Windows isolation modes (#15819) 2023-01-24 16:31: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 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 renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01: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 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 Ensure infra_image gets proper label used for reconciliation (#15898) 2023-01-30 09:46:45 -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 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