How to change the default docker registry in Nomad

I want to change the default docker registry configuration in nomad. I am setting up a nomad cluster in enterprise VM, which connects to frog artifcatory docker registry. Any docker hub images reference has to go through the internal artifactory registry.

Current error when I run a nomad job is below.

failed to setup alloc: pre-run hook "network" failed: failed to create network for alloc: Failed to pull ``: API error (500): Get dial tcp: lookup no such host

Here I want to pull the images through some url like gcr.artifactory.<enterprise-domain>/google_containers/pause-amd64:3.1


Hi @sanjeevkumarraob I believe this is a known issue in network bridge mode,Can I use a local mirror for pause-amd64? · Issue #11014 · hashicorp/nomad · GitHub

Thanks for the issue link… hope this gets addressed soon

It seems that the question I asked before is similar to yours

Nomad network bridge

Thanks a lot!!. This has helped to use the infra containers using internal registries rather connecting to public registry.