I don't know why but my env add a /v2 after my link to my artifactory like :
dockerfile :
FROM docker-registry.test.fr/test-base/alpine:3.12 as dependencies
and when i call : docker build --build-arg USER_CI=USER --build-arg PASSWORD_CI=PASSWORD -t wso2-docker .
I have :
Sending build context to Docker daemon 138.8kB Step 1/18 : FROM docker-registry.test.fr/test-base/alpine:3.12 as dependencies Get "https://docker-registry.test.fr/v2/": dial tcp: lookup docker-registry.test.fr on 192.168.1.148:53: read udp 192.168.49.2:54471->192.168.1.148:53: i/o timeout
Do you know where is define this url ?
Thx.
CodePudding user response:
Are you sure about registry path health? would can be accessed?
verify by pulling the image: docker pull yourImageRegistryRepoUrl
CodePudding user response:
How you have setup the Artifactory with docker? what docker access method you are using to connect? /v2 endpoint is expected as docker client expects v2 requests. The issue here is docker does not know if "docker-registry.test.fr" is available based onn what docker access method is set up.
