diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fda7c213eca..92a6b6e3d3a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ IMPROVEMENTS: * core: Improved job deregistration error logging. [[GH-8745](https://github.com/hashicorp/nomad/issues/8745)] * api: Added support for cancellation contexts to HTTP API. [[GH-8836](https://github.com/hashicorp/nomad/issues/8836)] + * driver/docker: upgrade pause container and detect architecture [[GH-8957](https://github.com/hashicorp/nomad/pull/8957)] BUG FIXES: diff --git a/drivers/docker/config.go b/drivers/docker/config.go index 1decb04a8692..99e48eb4e012 100644 --- a/drivers/docker/config.go +++ b/drivers/docker/config.go @@ -3,6 +3,7 @@ package docker import ( "context" "fmt" + "runtime" "strconv" "strings" "time" @@ -257,7 +258,10 @@ var ( // image to use when creating a network namespace parent container "infra_image": hclspec.NewDefault( hclspec.NewAttr("infra_image", "string", false), - hclspec.NewLiteral(`"gcr.io/google_containers/pause-amd64:3.0"`), + hclspec.NewLiteral(fmt.Sprintf( + `"gcr.io/google_containers/pause-%s:3.1"`, + runtime.GOARCH, + )), ), // timeout to use when pulling the infra image. "infra_image_pull_timeout": hclspec.NewDefault( diff --git a/website/pages/docs/drivers/docker.mdx b/website/pages/docs/drivers/docker.mdx index d49095d1ece4..b965ac241f32 100644 --- a/website/pages/docs/drivers/docker.mdx +++ b/website/pages/docs/drivers/docker.mdx @@ -824,8 +824,8 @@ plugin "docker" { the standard binds in the container. - `infra_image` - This is the Docker image to use when creating the parent - container necessary when sharing network namespaces between tasks. Defaults - to "gcr.io/google_containers/pause-amd64:3.0". + container necessary when sharing network namespaces between tasks. Defaults to + `gcr.io/google_containers/pause-:3.1`. - `infra_image_pull_timeout` - A time duration that controls how long Nomad will wait before cancelling an in-progress pull of the Docker image as specified in