Score:0

Can't curl Docker Containers

kr flag

I'm trying to setup docker on a company VM on Ubuntu 20.04.
At first I couldn't even start the service because it seems there was a conflict with the pre-existing routes. If I run the route command I get this:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         0.0.0.0         0.0.0.0         UG    20     0        0 eno3np0.1169
10.0.0.0        0.0.0.0         255.0.0.0       UG    20     0        0 eno3np0.1169
100.64.0.0      0.0.0.0         255.192.0.0     UG    20     0        0 eno3np0.1169
100.99.0.0      0.0.0.0         255.255.0.0     UG    20     0        0 eno3np0.1169
172.16.0.0      0.0.0.0         255.240.0.0     UG    20     0        0 eno3np0.1169
192.168.0.0     0.0.0.0         255.255.0.0     UG    20     0        0 eno3np0.1169

I was able to find a solution by specifying a different network in the /etc/docker/daemon.json:

{
    "bip": "240.0.0.1/24",
    "default-address-pools":[
        { "scope": "local", "base": "240.0.0.0/16", "size": 24 }
    ]
}

However, I've tried running a few containers, but it seems that I cannot reach them.

For example:

CONTAINER ID   IMAGE               COMMAND                  CREATED       STATUS       PORTS                                   NAMES
198ae3884ac7   tutum/hello-world   "/bin/sh -c 'php-fpm…"   3 hours ago   Up 3 hours   0.0.0.0:8081->80/tcp, :::8081->80/tcp   helloworld

If I try to curl it, it just hangs forever.

curl localhost:8081 -v
*   Trying 127.0.0.1:8081...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8081 (#0)
> GET / HTTP/1.1
> Host: localhost:8081
> User-Agent: curl/7.68.0
> Accept: */*
> 

I'm not sure how to proceed from here. Any suggestions on how to further debug the issue would be helpful as well.

iq flag
I have the same issue. still haven't found a resolution...
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.