Tip: Docker Extension for VSCode

Tobias Zimmergren
Tobias Zimmergren

I've been spending a lot of time with .NET Core, Docker, a plenitude of Azure services, various cloud systems and API's. The common denominator of all my projects of late, is that they're all touching Docker in one way or the other.

With Docker there's plenty of ways to do things. This post is simply a tip if you're using VSCode and also working with Docker to some extent; It'll help with some basic tasks.

Docker Extension for Visual Studio Code, installation

  • Press Ctrl + P (Windows)
  • Type ext install vscode-docker
  • Select and install the extension (as of this writing it's called Docker)
  • Verify that there's a new section called Docker in your left panel:

Docker panel in left menu

Manage images and containers from inside VSCode

You'll see all your images:

Docker images from VSCode

You'll also see all your containers:

Docker containers from VScode

From here, you can now manage images and containers more conveniently.

You'll also get a bunch of easy to run commands for Docker straight from inside VScode:

Docker commands

How am I using it?

The way I work with Docker on a daily basis is not set in stone. Most of the things I do, I do cmdline. However, these nuggets and extensions does indeed lighten the load sometimes when you quickly need to get into a container to check the logs, inspect an image or do other similar tasks. While using VSCode as a terminal and debug console isn't my recommendation in the long run, it's pretty convenient during development work.

Give it a shot.

Ignore this block, this is for troubleshooting my Ghost blogging theme:

var testing = true;

Tobias Zimmergren Twitter

Hi, I'm Tobias! 👋 I write about Microsoft Azure, security, cybersecurity, compliance, cloud architecture, Microsoft 365, and general tech!

Reactions and mentions

Hi, I'm Tobias 👋

Tobias Zimmergren profile picture

Find out more about me.

Recent comments