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?

Thanks.
Dec 20, 2018 in DevOps & Agile by Shubham
• 1,000 points
46 views

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,510 points

Related Questions In DevOps & Agile

+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 http://169.254.169.254/metadata/v1/id within the ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by Atul
• 10,240 points
232 views
+3 votes
2 answers
0 votes
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
• 6,890 points
40 views
0 votes
1 answer
0 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
• 56,520 points
151 views
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,510 points
92 views