This page documents a quick demonstration of a container being able to send a request and receive a response from Thunder via JSON-RPC.

The following bundle config and script were used for the video:

config.jsonthunderTest.sh

The Networking plugin configuration in the config.json is as follows:

Networking plugin configuration
"networking": {
    "required": false,
    "data": {
        "dnsmasq": true,
        "ipv4": true,
        "type": "nat",
        "portForwarding": {
            "containerToHost": [
                {
                    "port": 9998,
                    "protocol": "tcp"
                },
                {
                    "port": 9998,
                    "protocol": "udp"
                }
            ]
        }
    }
}

The networking plugin forwards the port 9998 from the container to host, so packets sent from the container to the Dobby bridge interface at 100.64.11.1 are redirected to localhost.

Video


networking_thunder_demo.mp4


  • No labels