Docker Community Forums

Share and learn in the Docker community.

Missing container in an internal network


(Peterbocan) #1

Hey guys, I’ve came across an issue where a container is not connected to network by docker-compose. I’ve tried to rebuild the whole setup twice now, without a change.

There should be a python container as well, but it’s not there. Here is an output of inspection.

$ docker network inspect a_db
[
{
    "Name": "a_db",
    "Id": "66b165f995a58bb41c9ded1b284b22095b2fe48dafd378fecdb3de43be2dc426",
    "Created": "2018-10-24T13:56:50.9139584Z",
    "Scope": "local",
    "Driver": "bridge",
    "EnableIPv6": false,
    "IPAM": {
        "Driver": "default",
        "Options": null,
        "Config": [
            {
                "Subnet": "172.30.0.0/16",
                "Gateway": "172.30.0.1"
            }
        ]
    },
    "Internal": false,
    "Attachable": true,
    "Ingress": false,
    "ConfigFrom": {
        "Network": ""
    },
    "ConfigOnly": false,
    "Containers": {
        "183b2d6416c8e00f7c3513be4eb88a0604540983a11c99cc5c303c63d69a7715": {
            "Name": "a_mailhog_1",
            "EndpointID": "69e832788b712b13c370a96a92f674452d5e437ed0933c222d93c9401a54c390",
            "MacAddress": "02:42:ac:1e:00:02",
            "IPv4Address": "172.30.0.2/16",
            "IPv6Address": ""
        },
        "6763ee65787549f5bb651673e74fd34513eb5956a62e61c4de8763f0f783047d": {
            "Name": "a_postgres_1",
            "EndpointID": "998394b76aca75cc33f8ece85691adf77df1589aa4fe04ee4638cf3c244b9e31",
            "MacAddress": "02:42:ac:1e:00:04",
            "IPv4Address": "172.30.0.4/16",
            "IPv6Address": ""
        },
        "7dd23ca0f1210198b0a357602cc2485b54db2ac24dee3c95cbf36d63b3d7c197": {
            "Name": "a_redis_1",
            "EndpointID": "93f869618db878255300cd3beb6c092ab1356961f9c11ad65402bc960397eabf",
            "MacAddress": "02:42:ac:1e:00:03",
            "IPv4Address": "172.30.0.3/16",
            "IPv6Address": ""
        },
        "e5f15e64b0ed1742f52ee0e373543c03276124f741fb6feabd0f63e3261d92c1": {
            "Name": "a_backend_1",
            "EndpointID": "1379891d33fe0b3aafec7a53791375c320949c083ba2808133a91c55babc764c",
            "MacAddress": "02:42:ac:1e:00:06",
            "IPv4Address": "172.30.0.6/16",
            "IPv6Address": ""
        }
    },
    "Options": {},
    "Labels": {
        "com.docker.compose.network": "db",
        "com.docker.compose.project": "a",
        "com.docker.compose.version": "1.22.0"
    }
}
]