701-100 Exam QuestionsBrowse all questions from this exam

701-100 Exam - Question 31


The following command is issued on two docker nodes:

docker network create --driver bridge isolated_nw

Afterwards, one container is started at each node with the parameter --network=isolated_nw. It turns out that the containers can not interact with each other.

What must be done in order to allow the containers to interact with each other? (Choose two correct answers.)

Show Answer
Correct Answer: CDE

To enable containers on different Docker nodes to interact with each other, you should start the containers on the same node, as containers in a bridge network communicate only within the same host. Additionally, using an overlay network instead of a bridged network allows containers running on different hosts to communicate with each other. Overlay networks are designed for multi-host communication by creating a shared network that spans across multiple Docker nodes.

Discussion

6 comments
Sign in to comment
hmagrounOptions: CE
Mar 26, 2020

i agree with C and E "--network=isolated_nw,nofence" : it seems strage as syntax I found nowhere "nofence" option

Blob21Options: CE
Jun 23, 2021

https://docs.docker.com/network/network-tutorial-standalone/ https://docs.docker.com/network/ C and E

MJ06Options: CE
Sep 7, 2021

"User-defined bridge networks are best when you need multiple containers to communicate on the same Docker host. Overlay networks are best when you need containers running on different Docker hosts to communicate, or when multiple applications work together using swarm services." C & E look best https://docs.docker.com/network/

elies_jebriOptions: CE
Jan 14, 2020

C and E seem to be best choices

hector1978Options: CE
Feb 17, 2020

I agree. The correct answers are C and E

alex87Options: CE
Feb 3, 2023

C and E are correct