Dear all,
Im using gitlab-ci to build image, while build i have a problem load metadata for openjdk:8-jre-alpine
My server is offline, Internet is restricted
can i force load from internet and change it into offline server.
here is my log, thanks !
$ docker build -t myproject .
#1 [internal] load build definition from Dockerfile
#1 sha256:c48ce823701392d81567204fcef3f403de2406f104b5961d6daf1768f599a29f
#1 transferring dockerfile: 560B done
#1 ...
#2 [internal] load .dockerignore
#2 sha256:8fd3edce30e528c10487a03cae2891a8cf3150acd652f23cf9c3e2175ea23c37
#2 transferring context: 2B done
#2 DONE 1.3s
#1 [internal] load build definition from Dockerfile
#1 sha256:c48ce823701392d81567204fcef3f403de2406f104b5961d6daf1768f599a29f
#1 DONE 1.4s
#3 [internal] load metadata for docker io/library/openjdk:8-jre-alpine
#3 sha256:54c6f6c810fe8adaea295f024fab13dc1a9a70e363a76f4d0bfb6e7ae191ebae
#3 ERROR: failed to do request: Head "https://registry-1.docker.io/v2/library/openjdk/manifests/8-jre-alpine": dial tcp: lookup registry-1.docker.io: i/o timeout
------
> [internal] load metadata for docker io library openjdk:8-jre-alpine:
------
ERROR: Job failed: exit code 1