Looking for something?

Tip: Docker Extension for VSCode

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.

0 Comments 09 October 2017
Tobias Zimmergren

Tobias Zimmergren

Hi, I'm Tobias Zimmergren. I am a Microsoft MVP for SharePoint and I use this site to share my thoughts on tech with you on topics like SharePoint, Office 365, Azure and general web development.

  Malmö, Sweden

Related Post

Comments powered by Disqus
Newsletter

Sign up to my e-mail newsletter to get news about Azure, SharePoint and Office 365 and get instant notifications when I publish new posts!

Enter valid email