EmilionDK Posted January 28, 2021 Share Posted January 28, 2021 Hi is it possible to add a list that can show dockers mac address on the docker webui in the same way as its ip ? I know you can see it via the terminal, the other would just be more convenient Or do you have other good ideas? Thanks Quote Link to comment
EmilionDK Posted February 28, 2021 Author Share Posted February 28, 2021 Hey I put together a simple batch script that does what I need, and I just want to share it if there are others who need it I use User Scripts, and have added it there. But you can also just run it from the console. This Show the Dockers - Name / IP / MAC #!/bin/bash docker inspect -f '|-| {{.Name}} |-| {{range .NetworkSettings.Networks}} {{.IPAddress}} |-| {{.MacAddress}}{{end}} |-|' $(sudo docker ps -aq) | tr -d / 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.