Docker Community Forums

Share and learn in the Docker community.

Cannot ping linux container from windows host

I cannot ping the linux container ip after creating it in a windows host. Below is the version, info and terminal logs

Host is Windows 10 running in VMWare

docker run -itd --rm -p "5000:5000" --expose 5000 --privileged="true" --network="host" idsrv4-host-dev-src

docker exec -it vibrant_liskov bash

root@moby:/# ip a 15: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default link/ether 02:42:f1:e7:36:3f brd ff:ff:ff:ff:ff:ff inet scope global docker0 valid_lft forever preferred_lft forever inet6 fe80::42:f1ff:fee7:363f/64 scope link valid_lft forever preferred_lft forever

On Host:
Pinging with 32 bytes of data: Request timed out. Request timed out.

Docker Client:
Version: 17.06.0-ce
API version: 1.30
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:30:30 2017
OS/Arch: windows/amd64

Docker Server:
Version: 17.06.0-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:51:55 2017
OS/Arch: linux/amd64
Experimental: true

Docker Info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 24
Server Version: 17.06.0-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: cfb82a876ecc11b5ca0977d1733adbe58599088a
runc version: 2d41c047c83e09a6d61d464906feb2a2f3c52aa4
init version: 949e6fa
Security Options:
Profile: default
Kernel Version: 4.9.31-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.934GiB
Name: moby
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 16
Goroutines: 25
System Time: 2017-07-06T00:19:37.1722503Z
EventsListeners: 0
Experimental: true
Insecure Registries:
Live Restore Enabled: false

The container will be available on localhost:5000: