Command for connecting Docker containers to OpenContrail
Note:
- The containers must run in privileged mode with some special flags.
[root@computenode001 ~]# docker run -it --rm --privileged --net=host --pid=host -v /var/run/docker.sock:/var/run/docker.sock dockers.tf.riotgames.com/rcluster/packnet /bin/bash
[root@computenode001 ~]# docker run -d --name steve_test --net=none dockers.tf.riotgames.com/rcluster/base
app$ ./packnet --network=globalqa.pdx2.steve.test --server=10.142.208.9 --tenant=steve.test --start=<container-id>
[root@computenode001 ~]# docker run --rm -it --net="container:steve_test" cirros /bin/sh