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

Ability to build images offline #165

Open
akshaymankar opened this issue Oct 3, 2018 · 4 comments
Open

Ability to build images offline #165

akshaymankar opened this issue Oct 3, 2018 · 4 comments

Comments

@akshaymankar
Copy link

What are we trying to do?

We need to build a container from a Dockerfile in an airgapped (without internet access) environment using img. We would like to use img because we don't want to install the Docker daemon in that environment.

With Docker daemon

  • Given a Dockerfile like so
FROM nginx:alpine
COPY foo /foo
  • We have saved the nginx:alpine image as a tarball using docker save.

We can run these commands to build the image without internet access:

docker load -i nginx-alpine.tgz
docker build .

With img

There seems to be no way for us to do this using img. We have tried using img pull and turning off the internet, but it still tries to go to the docker registry (maybe to check metadata). It would be really great if there was a way to load an image and turn off the metadata check while building.

Is our understanding correct? If not please let us know.
Does this sound like a valid feature for img?

/cc @sahilm

@AkihiroSuda
Copy link
Collaborator

cc @tonistiigi

@tonistiigi
Copy link

@AkihiroSuda Lets open this issue in upstream and discuss the technical solutions. Definitely a must-have feature.

@AkihiroSuda AkihiroSuda added the buildkit Moby BuildKit label Oct 4, 2018
@akshaymankar
Copy link
Author

Hi @tonistiigi @AkihiroSuda, Thanks for confirming the issue. I don't see any issues in buildkit open yet, can you please link us when you open it.
Also, we are open to contribute code for this, let us know if it is possible.

@AkihiroSuda
Copy link
Collaborator

opened issue moby/buildkit#706

PR is welcome ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants