How to inspect the bridge network to see what containers are connected to it

0 votes
I am still learning new things about Docker. I have created a bridge network on my Docker machine and I was wondering if there is any way to find out the information about the containers which are connected to it.

Is there any command in Docker to know about the containers attached to a particular network.

Can anyone help me with this?

Dec 20, 2018 in DevOps & Agile by Shubham
• 1,000 points

1 answer to this question.

0 votes

Yes, there is definitely a command in docker which will let you know about the containers attached to the bridge network which you have created.

Here is what you can try.

docker network inspect bridge
Under the Containers key, you can see all the connected container along with information about its IP address.
I hope the above information will resolve your query.
answered Dec 20, 2018 by Damon Salvatore
• 5,980 points

Related Questions In DevOps & Agile

0 votes
2 answers

What are the prerequisites required to learn Kubernetes?

Pre-requistic knowledge you requires before get started ...READ MORE

answered Oct 13, 2020 in DevOps & Agile by vivek kumar sahu
+5 votes
2 answers

How to program and get the Digital Ocean ID of the current Droplet from within the Droplet?

You can run curl within the ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by Atul
• 10,230 points
+3 votes
2 answers
+1 vote
1 answer

How do I get a Docker container's IP address from the host?

Save your docker image as a tar ...READ MORE

answered Aug 29, 2018 in DevOps & Agile by shubham
• 7,320 points
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,140 points
0 votes
1 answer

How to fix the misconfiguration of DNS for python app?

Based on what you have mentioned in ...READ MORE

answered Dec 12, 2018 in DevOps & Agile by Damon Salvatore
• 5,980 points
0 votes
1 answer