Skip to content

Does bridge plugin support disabling inter container connectivity? #1107

@swagatbora90

Description

@swagatbora90

Hi team,

I have a use-case where I need to disable intercontainer connectivity between containers attached to the same bridge network. With docker, I can pass com.docker.network.bridge.enable_icc=false option during network create which disables inter container connectivity. So I can do something like:

% docker network create --driver bridge --opt com.docker.network.bridge.enable_icc=false test_icc_disabled
1a0fc02fa29869f0301e2727defa1e9f90ba5c46825d67c74ec9973d1a42dbea

% docker run -d --name container1 --network test_icc_disabled busybox sleep 3600
8afe7c27e3757850c1583844ec12053febf9ab174fc3e1ec9ab2284db81ce002

% docker run -d --name container2 --network test_icc_disabled busybox sleep 3600
453c08e5fed68357a98668a4c96a8a02a57606869ef5aba7a043af27c02f7c73

% docker exec container2 ping -c 4 container1
PING container1 (240.11.2.2): 56 data bytes

--- container1 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss

I am trying to find out if the bridge plugin provides a similar mechanism to disable the default behavior through config?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions