You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
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 useimg
because we don't want to install the Docker daemon in that environment.With Docker daemon
nginx:alpine
image as a tarball usingdocker save
.We can run these commands to build the image without internet access:
With
img
There seems to be no way for us to do this using
img
. We have tried usingimg 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
The text was updated successfully, but these errors were encountered: