Question: The Nautilus DevOps team needs to set up several docker environments for different applications. One of the team members has been assigned a ticket where he has been asked to create some docker networks to be used later. Complete the task based on the following ticket description:
a. Create a docker network named as ecommerce on App Server 2 in Stratos
b. Configure it to use macvlan drivers.
c. Set it to use subnet 172.168.0.0/24 and iprange 172.168.0.2/24.
Solution:
Login to mentioned server
ssh steve@stapp02
Login as root
sudo su
Create the docker network
docker network create -d macvlan --subnet=172.168.0.0/24 --ip-range=172.168.0.2/24 ecommerce
Check the network
docker network ls
docker network inspect ecommerce
0 comments:
Post a Comment