HomeContact
Misc
How to add more information on Docker containers in Visual Studio Code
June 10, 2022
1 min

If you run a project with multiple docker containers in Visual Studio Code, you may want to show more information than what is offered by defaults.

Default containers information of Docker in VSCode
Default containers information of Docker in VSCode

As you can see, I have multiple instances running, and I don’t know their ports by heart. For debugging purposes, I wanted a quick view of their ports instead of hovering my mouse on their name and waiting for the ports to show.

To do that, open the Docker extension settings (Extensions > Settings > Extension Settings)

Open Docker Settings
Open Docker Settings

Search for the line Docker>Containers: Description to add more information. Click on Add Item and choose what you want to see directly. For me, it was Ports

Add Docker Container Description
Add Docker Container Description

Now we can directly see which image runs on which ports, allowing us to debug any calls that applications can make between each other.

Enhanced containers information of Docker in VSCode
Enhanced containers information of Docker in VSCode


Tags

vscodemisc

Related Posts

How to throttle network bandwidth in Chrome to simulate poor connection.
January 17, 2022
1 min
© 2023, All Rights Reserved.

Quick Links

Contact Us

Social Media