42/100 Create a Docker Network
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 blog
on App Server 1
in Stratos DC
.
b. Configure it to use macvlan
drivers.
c. Set it to use subnet 172.28.0.0/24
and iprange 172.28.0.0/24
.
sssh tony@stapp01
[tony@stapp01 ~]$ docker network create -d macvlan \
--subnet=172.28.0.0/24 \
--ip-range=172.28.0.0/24 \
blog
7573fc2e09746717dca29c1e0c531bf48d8e6df2adc0f0f7a2237b8495a40f4a
[tony@stapp01 ~]$ docker network ls
NETWORK ID NAME DRIVER SCOPE
7573fc2e0974 blog macvlan local <- New network we just created
f355b6600c06 bridge bridge local
42a03443b422 host host local
477c8d30f6e7 none null local