Docker Community Forums

Share and learn in the Docker community.

View docker images in Windows docker from CentOS 7

docker

(Serendipity30) #1

Hi

I’m using latest Docker Toolbox on Windows 7 in Desktop1.

I’ve another CentOS 7 VM in Desktop2 on Windows 7 OS on the same network. I’ve installed docker client on CentOS 7.

To view docker images in Desktop1 from CentOS 7, I tried below command in CentOS 7:

docker --tls -H tcp://192.168.99.100:2376 images

But it ended up with below error:
“Cannot connect to the Docker daemon. Is the docker daemon running on this host?”

I’ve copied the 3 certs files with .pem extension to CentOS 7 but no luck.

How do I connect to docker in Desktop1 from CentOS 7 to view the images?

Note: This is a non-production development environment only.

CentOS ifconfig from VM in Desktop2:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::5054:ff:febd:971e prefixlen 64 scopeid 0x20
ether 52:54:00:bd:97:1e txqueuelen 1000 (Ethernet)
RX packets 138061 bytes 180805159 (172.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18688 bytes 1241795 (1.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 185.24.50.96 netmask 255.255.255.0 broadcast 185.24.50.255
inet6 fe80::a00:27ff:fee4:7d0 prefixlen 64 scopeid 0x20
ether 08:00:27:e4:07:d0 txqueuelen 1000 (Ethernet)
RX packets 1996 bytes 333804 (325.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 570 bytes 82039 (80.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 0 (Local Loopback)
RX packets 4 bytes 340 (340.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4 bytes 340 (340.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ifconfig details in Windows Desktop1 when logged into boot2docker linux are:
br-b483fa361806 Link encap:Ethernet HWaddr 02:42:96:8C:E6:9F
inet addr:185.18.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::42:96ff:fe8c:e69f/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1317 errors:0 dropped:0 overruns:0 frame:0
TX packets:1712 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2134883 (2.0 MiB) TX bytes:319949 (312.4 KiB)

docker0 Link encap:Ethernet HWaddr 02:42:A3:CB:26:1B
inet addr:185.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::42:a3ff:fecb:261b/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:59 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:30381 (29.6 KiB) TX bytes:4250 (4.1 KiB)

eth0 Link encap:Ethernet HWaddr 08:00:27:AA:87:59
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:feaa:8759/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:773169 errors:0 dropped:0 overruns:0 frame:0
TX packets:100961 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:960555653 (916.0 MiB) TX bytes:6658341 (6.3 MiB)

eth1 Link encap:Ethernet HWaddr 08:00:27:60:B8:27
inet addr:192.168.99.100 Bcast:192.168.99.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe60:b827/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14559 errors:0 dropped:0 overruns:0 frame:0
TX packets:18459 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2234353 (2.1 MiB) TX bytes:7819118 (7.4 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:2752 (2.6 KiB) TX bytes:2752 (2.6 KiB)

Thanks