-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateaDockerNetwork
More file actions
24 lines (14 loc) · 833 Bytes
/
Copy pathCreateaDockerNetwork
File metadata and controls
24 lines (14 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 news on App Server 2 in Stratos DC.
b. Configure it to use bridge drivers.
c. Set it to use subnet 192.168.0.0/24 and iprange 192.168.0.2/24.
SOLUTION
To check the available networks on docker
#docker network ls
To create docker network with the requirements in the task above:
#docker network create --driver bridge --subnet 192.168.0.0/24 --ip-range 192.168.0.2/24 news (news is the name of the network)
To check if all the requirements were properly carried out
#docker network inspect news