The following script can be used to start list the running containers inside a particular network along with their ips.
|
|
Usage example:
|
|
Bonus tip:
Pipe the output into column -t
like so to get a pretty formatted tabular output.
|
|
Read Next
I’m running an experiment for better content recommendations. These are the 3 posts that are most likely to be interesting for you:
-
Start a container in a particular docker network
Unlock the full potential of your Docker setup by learning how to not only list all running containers on your network but also how to effortlessly start new ones with customized settings! -
Get frequency distribution of countries in a list of newline separated IP addresses in Linux
Unlock the power of IP analysis by learning how to map the global footprint of your Docker containers, enhancing your network insights and security strategies. -
Using different Github accounts with different private keys on Linux
Just like you streamlined your Docker workflow with a zsh script, you can similarly optimize your GitHub setup across multiple accounts with some clever SSH configurations.