Pages

Sunday, July 30, 2023

Simple Container Commands To Create LAB Setup.

Simple Container Commands To Create LAB Setup.


docker network create --driver=bridge --subnet=172.19.0.0/16 MQMNTRK

docker volume create my-vol101
docker volume create my-vol201
docker volume create my-vol301
docker volume create my-vol401

docker run -it -d --privileged=true --restart=always --network MQMNTRK -v my-vol101:/u01 --ip 172.19.0.20 -h HOST01 --name BOX01 centos:latest /usr/sbin/init

docker run -it -d --privileged=true --restart=always --network MQMNTRK -v my-vol201:/u01 --ip 172.19.0.30 -h HOST02 --name BOX02 centos:latest /usr/sbin/init

docker run -it -d --privileged=true --restart=always --network MQMNTRK -v my-vol301:/u01 --ip 172.19.0.40 -h HOST03 --name BOX03 centos:latest /usr/sbin/init

docker run -it -d --privileged=true --restart=always --network MQMNTRK -v my-vol401:/u01 --ip 172.19.0.50 -h HOST04 --name BOX04 centos:latest /usr/sbin/init

No comments:

Post a Comment