Get started with Docker containers on WSL (2023)

  • Article
  • 10 minutes to read

This step-by-step guide will help you get started developing with remote containers by setting up Docker Desktop for Windows with WSL 2 (Windows Subsystem for Linux, version 2).

Docker Desktop for Windows provides a development environment for building, shipping, and running dockerized apps. By enabling the WSL 2 based engine, you can run both Linux and Windows containers in Docker Desktop on the same machine. (Docker Desktop is free for personal use and small businesses, for info on Pro, Team, or Business pricing, see the Docker site FAQs).

Note

We recommend using Docker Desktop due to it's integration with Windows and Windows Subsystem for Linux. However, while Docker Desktop supports running both Linux and Windows containers, you can not run both simultaneously. To run Linux and Windows containers simultaneously, you would need to install and run a separate Docker instance in WSL. If you need to run simultaneous containers or just prefer to install a container engine directly in your Linux distribution, follow the Linux installation instructions for that container service, such as Install Docker Engine on Ubuntu or Install Podman for running Linux containers.

Overview of Docker containers

Docker is a tool used to create, deploy, and run applications using containers. Containers enable developers to package an app with all of the parts it needs (libraries, frameworks, dependencies, etc) and ship it all out as one package. Using a container ensures that the app will run the same regardless of any customized settings or previously installed libraries on the computer running it that could differ from the machine that was used to write and test the app's code. This permits developers to focus on writing code without worrying about the system that code will be run on.

Docker containers are similar to virtual machines, but don't create an entire virtual operating system. Instead, Docker enables the app to use the same Linux kernel as the system that it's running on. This allows the app package to only require parts not already on the host computer, reducing the package size and improving performance.

Continuous availability, using Docker containers with tools like Kubernetes, is another reason for the popularity of containers. This enables multiple versions of your app container to be created at different times. Rather than needing to take down an entire system for updates or maintenance, each container (and it's specific microservices) can be replaced on the fly. You can prepare a new container with all of your updates, set up the container for production, and just point to the new container once it's ready. You can also archive different versions of your app using containers and keep them running as a safety fallback if needed.

To learn more, check out Introduction to Docker containers.

Prerequisites

  • Ensure your machine is running Windows 10, updated to version 2004, Build 18362 or later.
  • Install WSL and set up a user name and password for your Linux distribution running in WSL 2.
  • Install Visual Studio Code (optional). This will provide the best experience, including the ability to code and debug inside a remote Docker container and connected to your Linux distribution.
  • Install Windows Terminal (optional). This will provide the best experience, including the ability to customize and open multiple terminals in the same interface (including Ubuntu, Debian, PowerShell, Azure CLI, or whatever you prefer to use).
  • Sign up for a Docker ID at Docker Hub (optional).
  • See the Docker Desktop license agreement for updates on the terms of use.

Note

WSL can run distributions in both WSL version 1 or WSL 2 mode. You can check this by opening PowerShell and entering: wsl -l -v. Ensure that the your distribution is set to use WSL 2 by entering: wsl --set-version <distro> 2. Replace <distro> with the distro name (e.g. Ubuntu 18.04).

In WSL version 1, due to fundamental differences between Windows and Linux, the Docker Engine couldn't run directly inside WSL, so the Docker team developed an alternative solution using Hyper-V VMs and LinuxKit. However, since WSL 2 now runs on a Linux kernel with full system call capacity, Docker can fully run in WSL 2. This means that Linux containers can run natively without emulation, resulting in better performance and interoperability between your Windows and Linux tools.

(Video) WSL 2 with Docker getting started

Install Docker Desktop

With the WSL 2 backend supported in Docker Desktop for Windows, you can work in a Linux-based development environment and build Linux-based containers, while using Visual Studio Code for code editing and debugging, and running your container in the Microsoft Edge browser on Windows.

To install Docker (after already installing WSL):

  1. Download Docker Desktop and follow the installation instructions.

  2. Once installed, start Docker Desktop from the Windows Start menu, then select the Docker icon from the hidden icons menu of your taskbar. Right-click the icon to display the Docker commands menu and select "Settings".Get started with Docker containers on WSL (1)

  3. Ensure that "Use the WSL 2 based engine" is checked in Settings > General.Get started with Docker containers on WSL (2)

  4. Select from your installed WSL 2 distributions which you want to enable Docker integration on by going to: Settings > Resources > WSL Integration.Get started with Docker containers on WSL (3)

  5. To confirm that Docker has been installed, open a WSL distribution (e.g. Ubuntu) and display the version and build number by entering: docker --version

  6. Test that your installation works correctly by running a simple built-in Docker image using: docker run hello-world

Tip

Here are a few helpful Docker commands to know:

  • List the commands available in the Docker CLI by entering: docker
  • List information for a specific command with: docker <COMMAND> --help
  • List the docker images on your machine (which is just the hello-world image at this point), with: docker image ls --all
  • List the containers on your machine, with: docker container ls --all or docker ps -a (without the -a show all flag, only running containers will be displayed)
  • List system-wide information regarding the Docker installation, including statistics and resources (CPU & memory) available to you in the WSL 2 context, with: docker info
(Video) Docker Complete Setup on Windows (With WSL Ubuntu)

Develop in remote containers using VS Code

To get started developing apps using Docker with WSL 2, we recommend using VS Code, along with the WSL, Dev Containers, and Docker extensions.

  • Install the VS Code WSL extension. This extension enables you to open your Linux project running on WSL in VS Code (no need to worry about pathing issues, binary compatibility, or other cross-OS challenges).

  • Install the VS Code Dev Containers extension. This extension enables you to open your project folder or repo inside of a container, taking advantage of Visual Studio Code's full feature set to do your development work within the container.

  • Install the VS Code Docker extension. This extension adds the functionality to build, manage, and deploy containerized applications from inside VS Code. (You need the Dev Containers extension to actually use the container as your dev environment.)

Let's use Docker to create a development container for an existing app project.

  1. For this example, I'll use the source code from my Hello World tutorial for Django in the Python development environment set up docs. You can skip this step if you prefer to use your own project source code. To download my HelloWorld-Django web app from GitHub, open a WSL terminal (Ubuntu for example) and enter: git clone https://github.com/mattwojo/helloworld-django.git

    Note

    Always store your code in the same file system that you're using tools in. This will result in faster file access performance. In this example, we are using a Linux distro (Ubuntu) and want to store our project files on the WSL file system \\wsl\. Storing project files on the Windows file system would significantly slow things down when using Linux tools in WSL to access those files.

  2. From your WSL terminal, change directories to the source code folder for this project:

    (Video) WSL 2 With Docker Getting Started and Docker Desktop Installation

    cd helloworld-django
  3. Open the project in VS Code running on the local WSL extension server by entering:

    code .

    Confirm that you are connected to your WSL Linux distro by checking the green remote indicator in the bottom-left corner of your VS Code instance.

    Get started with Docker containers on WSL (4)

  4. From the VS Code command pallette (Ctrl + Shift + P), enter: Dev Containers: Open Folder in Container... If this command doesn't display as you begin to type it, check to ensure that you've installed the Dev Containers extension linked above.

    Get started with Docker containers on WSL (5)

  5. Select the project folder that you wish to containerize. In my case, this is \\wsl\Ubuntu-20.04\home\mattwojo\repos\helloworld-django\

    Get started with Docker containers on WSL (6)

  6. A list of container definitions will appear, since there is no dev container configuration in the project folder (repo) yet. The list of container configuration definitions that appears is filtered based on your project type. For my Django project, I'll select Python 3.

    Get started with Docker containers on WSL (7)

  7. A new instance of VS Code will open, begin building our new image, and once the build completed, will start our container. You will see that a new .devcontainer folder has appeared with container configuration information inside a Dockerfile and devcontainer.json file.

    Get started with Docker containers on WSL (8)

  8. To confirm that your project is still connected to both WSL and within a container, open the VS Code integrated terminal (Ctrl + Shift + ~). Check the operating system by entering: uname and the Python version with: python3 --version. You can see that the uname came back as "Linux", so you are still connected to the WSL 2 engine, and Python version number will be based on the container config that may differ from the Python version installed on your WSL distribution.

    (Video) Get started with Docker containers on WSL 2 Ubuntu | DevOpsWorld

  9. To run and debug your app inside of the container using Visual Studio Code, first open the Run menu (Ctrl+Shift+D or select the tab on the far left menu bar). Then select Run and Debug to select a debug configuration and choose the configuration that best suites your project (in my example, this will be "Django"). This will create a launch.json file in the .vscode folder of your project with instructions on how to run your app.

    Get started with Docker containers on WSL (9)

  10. From inside VS Code, select Run > Start debugging (or just press the F5 key). This will open a terminal inside VS Code and you should see a result saying something like: "Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C." Hold down the Control key and select the address displayed to open your app in your default web browser and see your project running inside of its container.

    Get started with Docker containers on WSL (10)

You have now successfully configured a remote development container using Docker Desktop, powered by the WSL 2 backend, that you can code in, build, run, deploy, or debug using VS Code!

Troubleshooting

WSL docker context deprecated

If you were using an early Tech Preview of Docker for WSL, you may have a Docker context called "wsl" that is now deprecated and no longer used. You can check with the command: docker context ls. You can remove this "wsl" context to avoid errors with the command: docker context rm wsl as you want to use the default context for both Windows and WSL2.

Possible errors you might encounter with this deprecated wsl context include: docker wsl open //./pipe/docker_wsl: The system cannot find the file specified. or error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_wsl/v1.40/images/json?all=1: open //./pipe/docker_wsl: The system cannot find the file specified.

For more on this issue, see How to set up Docker within Windows System for Linux (WSL2) on Windows 10.

Trouble finding docker image storage folder

Docker creates two distro folders to store data:

  • \wsl$\docker-desktop
  • \wsl$\docker-desktop-data

You can find these folders by opening your WSL Linux distribution and entering: explorer.exe . to view the folder in Windows File Explorer. Enter: \\wsl\<distro name>\mnt\wsl replacing <distro name> with the name of your distribution (ie. Ubuntu-20.04) to see these folders.

Find more on locating docker storage locations in WSL, see this issue from the WSL repo or this StackOverlow post.

For more help with general troubleshooting issues in WSL, see the Troubleshooting doc.

(Video) Docker Tutorial for Beginners

Additional resources

FAQs

How do I start Docker in wsl? ›

Right-click the icon to display the Docker commands menu and select "Settings". Ensure that "Use the WSL 2 based engine" is checked in Settings > General. Select from your installed WSL 2 distributions which you want to enable Docker integration on by going to: Settings > Resources > WSL Integration.

How do I fix WSL 2 Install incomplete in Docker? ›

If you did not install WSL 2 before installing Docker, you will receive the WSL 2 installation is incomplete error when you try to start Docker. To fix this error, run the wsl --update command in an elevated PowerShell console, and restart your computer.

Can I run Docker in wsl without Docker Desktop? ›

Since we're installing Docker directly inside of WSL 2 you won't need Docker Desktop installed to make this work. If you previously had Docker Desktop installed you may also want to delete a few symlinks that Docker adds to WSL 2.

Why does Docker Desktop fail to start? ›

Docker Desktop fails to start when anti-virus software is installed. Some anti-virus software may be incompatible with Hyper-V and Microsoft Windows 10 builds. The conflict typically occurs after a Windows update and manifests as an error response from the Docker daemon and a Docker Desktop start failure.

How do I manually start Docker container? ›

  1. docker ps to get container of your container.
  2. docker container start <CONTAINER_ID> to start existing container.
  3. Then you can continue from where you left. e.g. docker exec -it <CONTAINER_ID> /bin/bash.
  4. You can then decide to create a new image out of it.

Why is WSL needed for Docker? ›

The Windows Subsystem for Linux (WSL) is a way to run a full Linux environment on your Windows machine, without having to install a "heavier" virtual machine, such as Virtual Box, VM Ware, or Hyper-V. WSL 2 also provides a mechanism for running Docker (with Linux containers) on your Windows machine.

How do I start Docker in WSL2? ›

So, how to run Docker on WSL2 under Windows without Docker Desktop (Debian / Ubuntu)?
  1. Install pre-required packages. sudo apt update. ...
  2. Install Docker. sudo apt install docker-ce docker-ce-cli containerd.io.
  3. Add user to group. sudo usermod -aG docker $USER.
Dec 21, 2021

Should I install WSL or WSL2? ›

We recommend that you use WSL 2 as it offers faster performance and 100% system call compatibility. However, there are a few specific scenarios where you might prefer using WSL 1. Consider using WSL 1 if: Your project files must be stored in the Windows file system.

Does Docker for Windows require WSL2? ›

WSL 2 uses an actual Linux kernel that allows Linux containers. WSL 1 was genius with running Linux on the Windows kernel, but of course lacked some of the features, such as containers. Microsoft offers a more detailed comparison in the docs. You will most certainly need WSL 2 to run the Docker service.

Does Docker with WSL require Hyper-V? ›

the answer is no for question 1 and I think @meyay also answered question 2, but to be clear, it requires either Hyper-V or WSL2. However, if you want to run not just Linux containers but native Windows containers, you can use only Windows container images with the matching version with your host without Hyper-V.

Can we run Docker without Sudo? ›

Verify that you can run docker commands without sudo . This command downloads a test image and runs it in a container. When the container runs, it prints a message and exits. This error indicates that the permission settings for the ~/.docker/ directory are incorrect, due to having used the sudo command earlier.

Can Docker run without operating system? ›

You would need an OS. The best would be to have a lean OS. Few options that could explore in that case is alpine + docker, rancher os, core os. You could use the scratch base image in your Dockerfile, depending on what you needed to run.

How long should it take for Docker Desktop to start? ›

Choose the Best for Your Career!

Enables integrated user interface to view and monitor Docker containers. Quickly starts Docker within ten seconds.

Is Docker still relevant 2022? ›

Is Docker Still Relevant In 2022? Docker remains relevant to most container projects, applications, and developers today thanks to its modern tools, compatibility, large community, and ease of use. However, Docker Inc has undergone changes recently, among them changes to Docker Desktop licensing.

What to do if Docker failed to initialize? ›

Steps to reproduce the behavior
  1. Reinstall Docker Desktop.
  2. Delete the settings.json file and then restart the computer.
  3. Delete C:\Users{user}. docker, C:\Users{user}\AppData\Local\Docker, and C:\Users{user}\AppData\Roaming\Docker. ...
  4. Start and stop Docker service in Service Configuration Panel. and then restart the computer.
Jul 19, 2022

What command can be used to start a container in docker? ›

You can then use the docker container start (or shorthand: docker start ) command to start the container at any point.

Do docker containers start automatically? ›

Docker provides restart policies to control whether your containers start automatically when they exit, or when Docker restarts. Restart policies ensure that linked containers are started in the correct order. Docker recommends that you use restart policies, and avoid using process managers to start containers.

What are the basic docker commands? ›

Top 20 Docker Commands
  • Docker version.
  • Docker search.
  • Docker pull.
  • Docker run.
  • Docker ps.
  • Docker stop.
  • Docker restart.
  • Docker kill.

What are the limitations of WSL? ›

Cons of Using WSL
  • WSL Could Discourage Desktop Linux Adoption. ...
  • Remote Possibility of Microsoft Dominating Linux. ...
  • WSL Could Discourage Native App Development. ...
  • You're Still Using Windows. ...
  • WSL Is Not Really Designed for Servers.
Jan 21, 2022

What is the benefit of using WSL? ›

Why would I use WSL rather than Linux in a VM? WSL requires fewer resources (CPU, memory, and storage) than a full virtual machine. WSL also allows you to run Linux command-line tools and apps alongside your Windows command-line, desktop and store apps, and to access your Windows files from within Linux.

How do you use WSL effectively? ›

To start using WSL, open up a PowerShell terminal and type wsl . If you've set up WSL correctly, you'll enter a bash terminal running on the WSL distro of choice. From here, you can run any Linux commands you wish. Below you will find a reference to all of the options the wsl.exe provides when starting up.

How can I tell if Docker is running in wsl2? ›

You could use the /info endpoint, i.e. http://ip-of-wsl2:2375/info . The response has a SystemStatus field that you can check. Thx, /info returns SystemStatus which means the docker engine is reachable.

How do I start Docker running? ›

How to Use the docker run Command
  1. Run a Container Under a Specific Name. ...
  2. Run a Container in the Background (Detached Mode) ...
  3. Run a Container Interactively. ...
  4. Run a Container and Publish Container Ports. ...
  5. Run a Container and Mount Host Volumes. ...
  6. Run a Docker Container and Remove it Once the Process is Complete.
Apr 2, 2020

Is WSL2 insecure? ›

WSL 2 is a more secure system than WSL 1 (or the legacy “bash” feature), but it does not eliminate the risks involved in running sensitive applications inside it. To be clear: It is a well-known fact that the “host” system always has full control over the “guest” system.

Is WSL good for coding? ›

WSL especially helps web developers and those working with Bash and Linux-first tools (for example, Ruby and Python) to use their tools on Windows and ensure consistency between development and production environments.

Is WSL as good as dual boot? ›

I'd argue, yes. WSL integrates at the Kernel Level within Windows, meaning almost peak performance, not like a VM. WSL also integrates completely with the entire Windows File System, meaning none of the size/capacity constrains of Dual-Boot.

Is it better to run Docker on Windows or Linux? ›

From a technical standpoint, there is no real difference between using Docker on Windows and Linux. You can achieve the same things with Docker on both platforms. I don't think you can say that either Windows or Linux is “better” for hosting Docker.

Is it better to install Docker on Windows or Linux? ›

While Linux is the native environment for Docker, the fact that it runs in Windows gives it a special appeal. Now, you can develop a system in your (preferred) Linux environment and deploy it on Windows! That's important for many systems that must be widely deployed among existing computers that happen to run Windows.

Can you run Docker containers natively on Windows? ›

The Microsoft container ecosystem

Run Windows-based or Linux-based containers on Windows 10 for development and testing using Docker Desktop, which makes use of containers functionality built-in to Windows. You can also run containers natively on Windows Server.

Should I enable Hyper-V for WSL? ›

While WSL 2 uses Microsoft's Hyper-V as a hypervisor under the hood to run the utility VM, it does not require you to enable Windows' Hyper-V role or feature; WSL works perfectly fine without it.

Can I run Docker without Hyper-V? ›

Docker Desktop on Windows 10 supports two backends: HyperV and WSL2. WSL2 in turn also uses Hyper-V — so without having Hyper-V enabled Docker Desktop fails to start and can't be used.

Should I enable Hyper-V for Docker? ›

Docker requires Hyper-V enabled options for Windows 10. Without an enabled option, Docker can not run after installation. Therefore, the Hyper-V option must be enabled.

Should Docker run as root or user? ›

One of the best practices while running Docker Container is to run processes with a non-root user. This is because if a user manages to break out of the application running as root in the container, he may gain root user access on host.

Is coding required to learn Docker? ›

Is coding knowledge required for Docker? Ans: Though you don't have to have a thorough understanding of coding, a basic knowledge of programming will help. Additionally, if you know, creating an application using either PHP, Java or Node. Js will boost your learning.

Can you run Docker without root? ›

Rootless mode allows running the Docker daemon and containers as a non-root user to mitigate potential vulnerabilities in the daemon and the container runtime. Rootless mode does not require root privileges even during the installation of the Docker daemon, as long as the prerequisites are met.

Why is Docker no longer free? ›

For companies with more than 250 employees or more than $10 million in revenue, they must use a paid subscription. Docker officials said that this adjustment is their exploration of a sustainable business model. Docker is no longer free for everyone because the company has decided to focus on its enterprise offerings.

How many Docker containers can I run per host? ›

Using this simple calculation, we can estimate that we can run about 1,000 containers on a single host with 10GB of available disk space.

Can you run Docker container without installing Docker? ›

TL;DR. Now you can start the docker daemon with colima start . You'll need to do this the first time you run the docker binary in every session. You can also run docker-compose up as per normal but without needing Docker Desktop.

Is 16gb RAM enough for Docker? ›

In addition, when using Docker CE on Windows, configure Docker to use Linux containers. Using Microsoft Windows Containers is not supported as it provides Windows API support to Windows container service instances. Minimum: 8 GB; Recommended: 16 GB.

Should I learn Docker as a beginner? ›

Because Docker is not just another tool, it's a game-changer, and I firmly believe that every Programmer, be it a Java developer, a C++ developer, or a Web Developer coding in JavaScript, all should learn Docker.

What is replacing Docker? ›

Podman is a rising star in a new container landscape that suddenly has a lot more players. Learn what Podman is and how it compares to Docker for Kubernetes compatibility and more. Will Podman replace Docker?

Why Docker is shutting down? ›

The process inside the container has been terminated: This is when the program that runs inside the container is given a signal to shut down. This happens if you run a foreground container (using docker run ), and then press Ctrl+C when the program is running.

Does Netflix use Docker? ›

We implemented multi-tenant isolation (CPU, memory, disk, networking and security) using a combination of Linux, Docker and our own isolation technology. For containers to be successful at Netflix, we needed to integrate them seamlessly into our existing developer tools and operational infrastructure.

Why is Docker being deprecated? ›

The Dockershim Deprecation

So, why the change? Simply put, Docker is heavy. We get better performance with a lightweight container runtime like containerd or CRI-O. As a recent example, Google benchmarks have shown that containerd consumes less memory and CPU, and that pods start in less time than on Docker.

What are the problems with Docker? ›

Docker's disadvantages and limitations include lack of cross-platform support, performance overhead and poor support for graphical interfaces. Docker is a great tool. But Docker containers are not a cure-all. If you really want to understand how Docker is impacting the channel, you have to understand its limitations.

What do I do if my Docker container is not running? ›

To resolve the Docker daemon is not running error, you first need to verify if the service of Docker Desktop is running or not. If the service is running then update the WSL package. After doing so, the specified error will be resolved.

How can I tell if Docker is running in WSL2? ›

You could use the /info endpoint, i.e. http://ip-of-wsl2:2375/info . The response has a SystemStatus field that you can check. Thx, /info returns SystemStatus which means the docker engine is reachable.

How do I start WSL2 terminal? ›

Open up PowerShell again and run the following command wsl.exe --shutdown . This will restart the wsl virtual env. Open up Windows Terminal and WSL2 will start up automatically.

How to start Docker daemon Windows command line? ›

Using Docker from Windows Command Prompt (cmd.exe)
  1. Launch a Windows Command Prompt (cmd.exe). ...
  2. Add this to the %PATH% environment variable by running: ...
  3. Create a new Docker VM. ...
  4. Get the environment commands for your new VM. ...
  5. Connect your shell to the my-default machine. ...
  6. Run the hello-world container to verify your setup.

Should I learn docker as a beginner? ›

Because Docker is not just another tool, it's a game-changer, and I firmly believe that every Programmer, be it a Java developer, a C++ developer, or a Web Developer coding in JavaScript, all should learn Docker.

Is coding required to learn docker? ›

Is coding knowledge required for Docker? Ans: Though you don't have to have a thorough understanding of coding, a basic knowledge of programming will help. Additionally, if you know, creating an application using either PHP, Java or Node. Js will boost your learning.

How do I automatically start Docker daemon in WSL2? ›

Automatically start Docker daemon on WSL2

First, you'll need to install Docker. (replace nilfranadmin with your username, unless you want to give me access to your system 🤣). Now, we will update our profile file to automatically run the docker daemon if it's not running yet.

Is WSL2 good enough? ›

We recommend that you use WSL 2 as it offers faster performance and 100% system call compatibility. However, there are a few specific scenarios where you might prefer using WSL 1. Consider using WSL 1 if: Your project files must be stored in the Windows file system.

What is the difference between WSL and WSL2? ›

WSL2 is the latest version of WSL with new features. It was announced at Microsoft Build 2019. WSL2 features a Linux kernel running inside Windows 10 and Windows 11 and is built on the core technology of Hyper-V to provide better Linux application support and improved file performance.

Is WSL faster than VM? ›

Windows Subsystem for Linux

While WSL 2 actually uses the Linux kernel running under Hyper-V, you won't have as much of a performance hit than with a VM because you aren't running most of the other processes that run on a Linux system. You can run WSL with less memory than you would need for a virtual machine.

How do I start and connect to a docker container? ›

To connect to a container using plain docker commands, you can use docker exec and docker attach . docker exec is a lot more popular because you can run a new command that allows you to spawn a new shell. You can check processes, files and operate like in your local environment.

How do I start docker on Windows? ›

Go to the website https://docs.docker.com/docker-for-windows/install/ and download the docker file. Note: A 64-bit processor and 4GB system RAM are the hardware prerequisites required to successfully run Docker on Windows 10. 2. Then, double-click on the Docker Desktop Installer.exe to run the installer.

How do I start docker daemon or service? ›

HTTP/HTTPS proxy
  1. Create a systemd drop-in directory for the docker service: $ sudo mkdir -p /etc/systemd/system/docker.service.d.
  2. Flush changes and restart Docker. $ sudo systemctl daemon-reload $ sudo systemctl restart docker.

Videos

1. Docker Desktop & WSL 2 Integration Deep Dive
(Docker)
2. Docker Websites on Windows 10? Nice! (WSL 2)
(David Bombal)
3. Getting Started with Docker
(Docker)
4. Docker in WSL WITHOUT windows docker desktop!
(The Null Channel)
5. Setup a Windows Development Environment with WSL2, Docker and VSCode
(Steven Koon)
6. First Docker Container in WSL using docker-compose
(Programming with John)
Top Articles
Latest Posts
Article information

Author: Arielle Torp

Last Updated: 07/03/2023

Views: 5835

Rating: 4 / 5 (61 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Arielle Torp

Birthday: 1997-09-20

Address: 87313 Erdman Vista, North Dustinborough, WA 37563

Phone: +97216742823598

Job: Central Technology Officer

Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.