Creating private network in docker

Create a private network using docker network command

docker network create --subnet=172.18.0.0/16 kubenet

Assign the ip to container using —ip

docker run --net kubenet ---ip 172.18.0.4 -it -d ubuntu

Posted in Uncategorized.

Leave a Reply

Your email address will not be published. Required fields are marked *