docker add network code example
Example 1: docker create network
// docker network create -d <TYPE> <Name>
docker network create -d bridge my-bridge-network
Example 2: docker network create
$ docker run -itd --network=mynet busybox
Example 3: docker add route to network
docker run \
--cap-add NET_ADMIN \ # to allow changing net settings inside the container
--name container1 \
--restart always \ # restart policy
your_image \
/path/to/your_start_script.sh