Step 1/3 : FROM alpine:edge
—> 7eacb6761fa1
Step 2/3 : MAINTAINER javaonfly
—> Using cache
—> 77818d634212
Step 3/3 : RUN ping 8.8.8.8
—> Running in 678b317bbc2c
PING 8.8.8.8 (8.8.8.8): 56 data bytes
I observe that the PING is stuck for very long. If I execute the same docker file on AWS EC2 linux machine I see the response to the ping.
On the host machine, I can successfully run the command docker run hello-world. I can also ping to www.google.com from host machine. But, it seems the alpine:edge container is not able to connect to internet.
I am completely stuck as I do not understand what settings should I check. Thanks.
I have fixed the issue. I think, because my host is behind a proxy, I had to exclusively mention the proxy server in the build command. Here is the command that tworked for me.