docker-images
docker-images copied to clipboard
Cannot download repomd.xml
When i try to run the command: ./buildContainerImage.sh -v 19.3.0 -e I am getting the following error: => ERROR [base 4/4] RUN chmod ug+x /opt/install/*.sh && sync && /opt/install/checkSpace.sh && /opt/install/setupLinuxEnv.sh && rm -rf /opt/install 0.4s
[base 4/4] RUN chmod ug+x /opt/install/*.sh && sync && /opt/install/checkSpace.sh && /opt/install/setupLinuxEnv.sh && rm -rf /opt/install: 0.362 Oracle Linux 8 BaseOS Latest (aarch64) 0.0 B/s | 0 B 00:00
0.362 Errors during downloading metadata for repository 'ol8_baseos_latest': 0.362 - Curl error (7): Couldn't connect to server for https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/aarch64/repodata/repomd.xml [Failed to connect to 127.0.0.1 port 9000: Connection refused] 0.367 Error: Failed to download metadata for repo 'ol8_baseos_latest': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Dockerfile:89
I can curl https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/aarch64/repodata/repomd.xml from my mac.
running the following also produces the same error: docker run --rm -it oraclelinux:7-slim curl -vvI https://yum.oracle.com/repo/OracleLinux/OL7/UEKR4/x86_64/repodata/repomd.xml
- About to connect() to proxy 127.0.0.1 port 9000 (#0)
- Trying 127.0.0.1...
- Connection refused
- Failed connect to 127.0.0.1:9000; Connection refused
- Closing connection 0 curl: (7) Failed connect to 127.0.0.1:9000; Connection refused
My docker config.json has the following: "proxies": { "default": { "httpProxy": "http://127.0.0.1:9000", "httpsProxy": "http://127.0.0.1:9000" } }
I am also encountering this error. Any suggestions on how to solve this?
the same problem I've meet. And I've solved it: I use clash,
there is a function which's called [Allow LAN]. Open it
This will allow you to use the proxy from container. How could I know it? I code 'telnet 127.0.0.1 7890' in buildContainerImage.sh, and it doesn't work. So I know the key of this problem.
"${PROXY_SETTINGS[@]//127.0.0.1/192.168.0.101}"
Also you need to replace the ip from 127.0.0.1 to the actual ip which's your pc's ip in buildContainerImage.sh.