Docker Community Forums

Share and learn in the Docker community.

Docker not able to ping by name on Windows 10

(Tomasevicstefan) #1

Hi all,

I’m pretty new with docker and windows containers so with every issue I have a lot of problems to solve it.
I don’t no why and how to set docker to ping by name on windows 10.

When I run command

docker run ‘dockerimage’ ping

get response

Ping request could not find host Please check the name and try again.

and when I run command

docker run ‘dockerimage’ ping

get valid response.

I think this makes me a problem when I want to download file from my application that runs on docker container.
So if anyone know how to solve it, I would be more than grateful.

Regards, Stefan

(Sam) #2

i doubt there is a name server set up.

hm… windows… how to find the resolver info…

looks like you have to use the netsh command (in the container) to change the dns server info…

(Tomasevicstefan) #3

I’m not that much in networking. Do you have some tips how to change DNS on docker container with netsh?

(Sam) #4


me neither…
maybe someone else will help out, but google netsh should help too