open-nomad/drivers
Seth Hoenig d590123637
drivers/docker: refactor use of clients in docker driver (#17731)
* drivers/docker: refactor use of clients in docker driver

This PR refactors how we manage the two underlying clients used by the
docker driver for communicating with the docker daemon. We keep two clients
- one with a hard-coded timeout that applies to all operations no matter
what, intended for use with short lived / async calls to docker. The other
has no timeout and is the responsibility of the caller to set a context
that will ensure the call eventually terminates.

The use of these two clients has been confusing and mistakes were made
in a number of places where calls were making use of the wrong client.

This PR makes it so that a user must explicitly call a function to get
the client that makes sense for that use case.

Fixes #17023

* cr: followup items
2023-06-26 15:21:42 -05:00
..
docker drivers/docker: refactor use of clients in docker driver (#17731) 2023-06-26 15:21:42 -05:00
exec [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
java [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
mock allocrunner: provide factory function so we can build mock ARs (#17161) 2023-05-12 13:29:44 -04:00
qemu [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
rawexec [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
shared Add disable_file parameter to job's vault stanza (#13343) 2023-06-23 15:15:04 -04:00