Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Introduction to Docker Fundamentals of Docker Docker Networking

Why does pinging a container work for me when instructor says it shouldn't?

The instructor says that pinging the IP address of a container from the host doesn't work. However, when I try, it doesn't work. Is this new or?

[ec2-user@ip-172-31-30-224 ~]$ ping -c3 172.17.0.3
PING 172.17.0.3 (172.17.0.3) 56(84) bytes of data.
64 bytes from 172.17.0.3: icmp_seq=1 ttl=255 time=0.048 ms
64 bytes from 172.17.0.3: icmp_seq=2 ttl=255 time=0.046 ms
64 bytes from 172.17.0.3: icmp_seq=3 ttl=255 time=0.047 ms

--- 172.17.0.3 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2032ms
rtt min/avg/max/mdev = 0.046/0.047/0.048/0.000 ms