Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Introduction to Docker Fundamentals of Docker Docker Networking

ping 172.17.0.3 times out

Hello

docker inspect bridge
[
    {
        "Name": "bridge",
        "Id": "188570c32974daa6a08aca5991209723ded6c151027c620baadc897d836edd1b",
        "Created": "2017-09-22T13:00:12.3113971Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.17.0.0/16",
                    "Gateway": "172.17.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "609df1bc02ff77664028d32625f7a0050dbc8eb94202f7635e54ceace9135f48": {
                "Name": "container1",
                "EndpointID": "5ab7dece059a7100824b2ef21fcaf12c94a3bf13029f9f108b442d3ed0d5e1bb",
                "MacAddress": "02:42:ac:11:00:02",
                "IPv4Address": "172.17.0.2/16",
                "IPv6Address": ""
            },
            "dfcce0df80b6a37b8bf9009b1edcaf6c66f7f829010eeb319c04dd96d8960829": {
                "Name": "container2",
                "EndpointID": "b7946894ff2cf0fad2417e8cb950e0d7ea125aa761e5acd886457f4bb9026bec",
                "MacAddress": "02:42:ac:11:00:03",
                "IPv4Address": "172.17.0.3/16",
                "IPv6Address": ""
            }
        },
        "Options": {
            "com.docker.network.bridge.default_bridge": "true",
            "com.docker.network.bridge.enable_icc": "true",
            "com.docker.network.bridge.enable_ip_masquerade": "true",
            "com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
            "com.docker.network.bridge.name": "docker0",
            "com.docker.network.driver.mtu": "1500"
        },
        "Labels": {}
    }
]

but

unlike the video ping 172.17.0.3

Pinging 172.17.0.3 with 32 bytes of data:
Request timed out.
Request timed out.

any idea why?

Thanks

1 Answer

gee :-( never mind, this is the correct response ... I wasn't thinking ... TGIF