![]() docker exec demo powershell.exe ipconfig Conclusion ![]() This method return a lot of Information the I probably don’t need and to run this the Container needs to In running state. In the second method below, I’m using Docker Exec to run the Ipconfig command on my Windows Server. docker container inspect -format '' demo Docker Exec ![]() The return output Is very specific and the IP address Is returned without any additional data. In the first method below, I’m using the Docker Inspect command (command Is case sensitive). docker run -d -it -name demo microsoft/windowsservercore Docker Inspect To get started, I’ll create a Windows Server Container running Windows Server Core 2016 which I use for example In this post.īoth methods will work on Linux Containers or Windows Containers as well on hosts. This post will show you two methods to achieve this goal. In this blog post, I’ll show you how to check a Windows Server Container IP address using two methods.įinding a Container IP address Is something that Is always needed when troubleshooting containers or when operating them In production.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |