VOOZH about

URL: https://thenewstack.io/create-a-development-environment-in-docker-desktop/

⇱ Create a Development Environment in Docker Desktop - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2023-08-05 06:00:32
Create a Development Environment in Docker Desktop
tutorial,
Operations

Create a Development Environment in Docker Desktop

Docker's new Dev Environments (still in beta) allows you to create a configurable development environment using a locally deployed, self-contained container. Here's how to set it up.
Aug 5th, 2023 6:00am by Jack Wallen
👁 Featued image for: Create a Development Environment in Docker Desktop

The Docker Desktop has a number of cool features aimed at making container development more efficient and easier. One such feature is called Dev Environments (still in beta), which allows you to create a configurable development environment using a locally deployed, self-contained container and simplifies the process of sharing code and dependencies with a team and even switching between branches.

Essentially, what you can do is create a development environment (which is created within a docker container) where you can then either open the dev environment in VSCode, inspect the environment, access the command line interface of the running container, and much more.

With Docker Dev Environments, you can either use remote GitHub repositories or those on your local machine. For those who are just getting started on this journey, there’s also a sample environment you can use as a demonstration to get yourself up to speed (which is what we’re going to do). Once you’re accustomed to the Docker Desktop Dev Environment workflow, you can then start working with remote repositories (such as GitHub).

Before we dive into Docker Desktop, there are a couple of things you’ll have to take care of first. As well, you should know that this feature is still in beta, so there will most likely be issues. Obviously, you must have Docker and Docker Desktop installed on your machine. You’ll also need VSCode installed. I’m going to demonstrate on Ubuntu Desktop 22.04 and I’ll help you get VSCode installed and take care of one extra step that must be taken care of before the app will interact with Docker Desktop.

Installing VSCode

The first thing to do is install VSCode. To do that, point your browser to the VSCode site and download the .deb installation file. Once the file has been downloaded, open a terminal window, change into the Downloads directory with the command cd ~/Downloads, and install VSCode with the command:

sudo dpkg -i code*.deb

That installation should go off without a hitch. With VSCode installed, open the app from your desktop menu.

Add the Dev Containers Extension

The next missing piece is the Dev Containers extension. To do that, click on the Extensions tab in the left sidebar and, in the search field (Figure 1), type the following:

@id:ms-vscode-remote.remote-containers

Hit Enter on your keyboard and the Dev Containers extension should automatically be added to VSCode. If not, click Install in the Dev Containers description and it should finish the job.

👁 Image

Figure 1: Installing the Dev Containers extension in VSCode.

Create Your First Dev Environment

We can now create our first Docker Desktop Dev Environment. To do that, open Docker Desktop and click on Dev Environments in the left navigation (Figure 2).

👁 Image

Figure 2: The Dev Environments is clearly still in beta but ready to use.

In the resulting window (Figure 3), click Run a single container.

👁 Image

Figure 3: Creating a sample Dev Environment in Docker Desktop.

In the popup window, click Get Started. You will then be prompted to give the Dev Environment a name. Leave everything else as is (Figure 4), and click Continue.

👁 Image

Figure 4: Naming your new Docker Dev Environment.

At this point, Docker Desktop will do its thing and pull everything necessary for the environment. You’ll see a list of images that are created and, when it’s complete, a Successful notification. When it’s finished, click Continue.

In the final screen (Figure 5), click Open in VSCode to open the new dev environment in your IDE.

👁 Image

Figure 5: Our sample Dev Environment has been created and is ready to work with.

Once VSCode opens the environment, you can start developing within that environment.

Or, you can go back to Docker Desktop, click the three-dot menu associated with the newly-created Dev Environment, and click Exec In CLI (Figure 6), which will drop you into a terminal window (within Docker Desktop) inside the running container, where you can work directly with whatever container you’ve used for your Dev Environment.

👁 Image

Figure 6: Accessing the CLI for the running container of our Dev Environment.

From that same window, you can view Logs and Stats for the running container, inspect the environment and mounts for the container, and view an expandable hierarchy of all directories and files within the container.

The container(s) within the Dev Environment will continue running until you stop them. To do so, go back to the environment listing, hover your cursor over the running container, and click the stop button (Figure 7).

👁 Image

Figure 7: Stopping a running container with the Dev Environment.

Stopping the container within the environment doesn’t delete the environment itself and you can add as many environments as you need.

And that’s the gist of creating your first Dev Environment with Docker Desktop. Keep in mind, Dev Environments is still in Beta, so it may be changed quite a bit yet before it is finalized. But even this early iteration shows great promise.

Next time we visit this topic, we’ll learn how to create Dev Environments with both local and remote repositories. Until then, keep poking around this new Docker Desktop feature, so you can see just how valuable a tool it could be to your teams.

TRENDING STORIES
Jack Wallen is what happens when a Gen Xer mind-melds with present-day snark. Jack is a seeker of truth and a writer of words with a quantum mechanical pencil and a disjointed beat of sound and soul. Although he resides...
Read more from Jack Wallen
SHARE THIS STORY
TRENDING STORIES
Docker is a sponsor of The New Stack.
TNS owner Insight Partners is an investor in: Docker.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.