Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

network bridge mode,Can I use a local mirror for pause-amd64? #11014

Closed
lialzm opened this issue Aug 9, 2021 · 6 comments · Fixed by #13265
Closed

network bridge mode,Can I use a local mirror for pause-amd64? #11014

lialzm opened this issue Aug 9, 2021 · 6 comments · Fixed by #13265
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/driver/docker type/bug

Comments

@lialzm
Copy link

lialzm commented Aug 9, 2021

my config

    network {
      mode = "bridge"
      port "http" {
        to = 80
      }
      port "https" {
        to=443
      }
    }

my local image

gcr.io/google_containers/pause-amd64                              3.1         da86e6ba6ca1   3 years ago    742kB

but i get error,Because i can't access gcr.io

failed to setup alloc: pre-run hook "network" failed: failed to create network for alloc: Failed to pull `gcr.io/google_containers/pause-amd64:3.1`: API error (500): Get https://gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
@jrasell
Copy link
Member

jrasell commented Aug 9, 2021

Hi @lialzm; are you able to provide additional details regarding your setup as well as any log messages that could be useful? If the image is locally available where the job is running, the Docker driver should be able to use it without the need to pull it from the remote source.

@lialzm
Copy link
Author

lialzm commented Aug 9, 2021

Hi @jrasell

this repo is all my config

https://github.com/lialzm/nomad-demo

@lialzm
Copy link
Author

lialzm commented Aug 9, 2021

Because my network is currently inaccessible gcr.io/google_containers/pause-amd64 ,so I use docker save and docker load this image ,but nomad is pull still

@Adrien-Luxey
Copy link

Adrien-Luxey commented Nov 12, 2021

I have the same issue using Consul Connect:

failed to setup alloc: pre-run hook "network" failed: failed to create network for alloc: Failed to pull gcr.io/google_containers/pause-amd64:3.1: API error (500): Get "https://gcr.io/v2/": dial tcp [2a00:1450:400c:c06::52]:443: connect: connection refused

On my host or on my server, curl https://gcr.io fails with "can't connect, connection refused". Some "Is this site down?" websites consider gcr.io to be down, while others do not.

Still, after a simple change in my web-server config, I can't restart it: all my infrastructure is down. This is ridiculous, for a "pause container" that's already on my server... (Still loving Nomad ;) But I won't be using Consul Connect anymore - connecting to Google on every config change is not acceptable.)

@shoenig shoenig added the stage/accepted Confirmed, and intend to work on. No timeline committment though. label Apr 6, 2022
@sanjeevkumarraob
Copy link

sanjeevkumarraob commented Apr 7, 2022

This needs to be addressed. Nomad doesn't use the cached image and every time it tries to connect to gcr.io which cannot be connected from a server.

@github-actions
Copy link

github-actions bot commented Nov 5, 2022

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/driver/docker type/bug
Projects
None yet
5 participants