# codeedu/wsl2-docker-quickstart

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/codeedu-wsl2-docker-quickstart).**

4,463 stars · 957 forks

## Links

- GitHub: https://github.com/codeedu/wsl2-docker-quickstart
- awesome-repositories: https://awesome-repositories.com/repository/codeedu-wsl2-docker-quickstart.md

## Topics

`docker-desktop` `windows-subsystem-for-linux` `windows-subsystem-linux` `windows-terminal` `wsl` `wsl-backup` `wsl-docker` `wsl-environment` `wsl-instalar` `wsl-install` `wsl-installation` `wsl-setup` `wsl-terminal` `wsl-tutorial` `wsl-ubuntu` `wsl2` `wsl2-docker` `wsl2-setup` `wsl2-tutorial` `wslg`

## Description

This project is a technical setup guide for installing and configuring Docker within a Windows Subsystem for Linux 2 environment. It serves as a walkthrough for creating a virtualized Linux workspace on Windows to build and run software with native performance.

The guide focuses on integrating container engines for isolated application deployment and establishing a cross-platform workflow. It provides instructions for linking external code editors to the subsystem, running graphical Linux applications on the host, and executing host binaries within the Linux terminal.

It covers the management of virtualization resources, including tuning CPU and RAM allocations and expanding or compacting virtual disk space. Additionally, it details methods for automating system services and using environment snapshots to export, import, and preserve development states.

## Tags

### Development Tools & Productivity

- [WSL2 Development Workspaces](https://awesome-repositories.com/f/development-tools-productivity/wsl2-development-workspaces.md) — Provides a comprehensive guide to setting up a virtualized Linux space and Docker engine as a complete development workspace. ([source](https://github.com/codeedu/wsl2-docker-quickstart#readme))
- [Cross-OS Development Workflows](https://awesome-repositories.com/f/development-tools-productivity/cross-os-development-workflows.md) — Integrates Windows host tools and graphical applications with a Linux subsystem for a seamless development experience.
- [VSCode Editor Integrations](https://awesome-repositories.com/f/development-tools-productivity/vscode-editor-integrations.md) — Links Visual Studio Code to the subsystem to edit files and run commands with native performance. ([source](https://github.com/codeedu/wsl2-docker-quickstart/blob/main/README.en.md))
- [Development Environment Management](https://awesome-repositories.com/f/development-tools-productivity/development-environment-management.md) — Provides methods for exporting, importing, and preserving the state of the development environment.
- [IDE-Subsystem Integrations](https://awesome-repositories.com/f/development-tools-productivity/ide-subsystem-integrations.md) — Link a code editor to the environment to edit files and execute commands directly within the subsystem. ([source](https://github.com/codeedu/wsl2-docker-quickstart/blob/main/README.md))
- [Distribution Snapshots](https://awesome-repositories.com/f/development-tools-productivity/sdk-client-initialization/independent-client-instances/isolated-environment-instances/linux-environment-instance-management/distribution-snapshots.md) — Explains how to export and import entire Linux distribution images to preserve configured development states. ([source](https://github.com/codeedu/wsl2-docker-quickstart#readme))
- [System Service Managers](https://awesome-repositories.com/f/development-tools-productivity/system-service-managers.md) — Utilizes system service managers to automate the startup of background daemons and essential development tools.

### Operating Systems & Systems Programming

- [Windows Linux Integration](https://awesome-repositories.com/f/operating-systems-systems-programming/windows-linux-integration.md) — Sets up a virtualized Linux kernel within Windows to provide native system call compatibility.
- [WSL Development Environments](https://awesome-repositories.com/f/operating-systems-systems-programming/linux-environment-emulation/wsl-development-environments.md) — Sets up a virtualized Linux workspace on Windows to build and run software with native performance.
- [Cross-Platform File Operations](https://awesome-repositories.com/f/operating-systems-systems-programming/system-administration-maintenance/file-system-management/file-system-utilities/cross-platform-file-operations.md) — Enables opening and managing files across the Windows and Linux boundaries using file explorers. ([source](https://github.com/codeedu/wsl2-docker-quickstart#readme))
- [Automated Startup Configurations](https://awesome-repositories.com/f/operating-systems-systems-programming/automated-startup-configurations.md) — Configures specific background services to start automatically at boot via system service managers. ([source](https://github.com/codeedu/wsl2-docker-quickstart/blob/main/README.md))
- [Boot-Time Process Automation](https://awesome-repositories.com/f/operating-systems-systems-programming/boot-time-process-automation.md) — Implements mechanisms to ensure background daemons and tools launch automatically upon environment startup.
- [Service Auto-Start Configurators](https://awesome-repositories.com/f/operating-systems-systems-programming/kernel-core-internals/boot-startup-management/service-auto-start-configurators.md) — Manages boot commands and service controllers to automate the startup of essential system tools. ([source](https://github.com/codeedu/wsl2-docker-quickstart/blob/main/README.en.md))
- [WSL Resource Tuning](https://awesome-repositories.com/f/operating-systems-systems-programming/virtualization-emulation/virtualization-platforms/virtualization-technologies/virtual-machines/linux-provisioning/lightweight-linux-virtual-machines/wsl-resource-tuning.md) — Guides the configuration of CPU, RAM, and disk resources to optimize the virtualized Linux kernel.

### DevOps & Infrastructure

- [Container Engine Installations](https://awesome-repositories.com/f/devops-infrastructure/container-engine-installations.md) — Provides detailed procedures for installing and configuring the Docker container engine within a WSL2 environment. ([source](https://github.com/codeedu/wsl2-docker-quickstart/blob/main/README.en.md))
- [Container Engine Integrations](https://awesome-repositories.com/f/devops-infrastructure/container-engine-integrations.md) — Configures the bridge between the virtualized subsystem and the container daemon for isolated deployment.
- [Container Orchestration Integrations](https://awesome-repositories.com/f/devops-infrastructure/container-orchestration-integrations.md) — Integrates a container daemon with the virtualized subsystem for isolated application deployment.
- [Docker Container Execution](https://awesome-repositories.com/f/devops-infrastructure/container-orchestration/container-runtimes/runtime-configuration-interfaces/docker-socket-orchestrators/docker-target-configurators/docker-container-deployments/docker-container-execution.md) — Enables the execution of applications inside isolated Docker containers integrated with the subsystem. ([source](https://github.com/codeedu/wsl2-docker-quickstart#readme))
- [Docker Container Orchestrators](https://awesome-repositories.com/f/devops-infrastructure/container-orchestration/container-runtimes/runtime-configuration-interfaces/docker-socket-orchestrators/docker-target-configurators/docker-container-orchestrators.md) — Manages the installation and lifecycle of container engines to run isolated applications within the subsystem.

### Networking & Communication

- [Host-to-Guest File Sharing](https://awesome-repositories.com/f/networking-communication/network-file-sharing/host-to-guest-file-sharing.md) — Enables the guest environment to access files and execute host binaries via a shared system bridge.

### Data & Databases

- [Resource Allocation Tuning](https://awesome-repositories.com/f/data-databases/connection-pools/performance-tuning/resource-allocation-tuning.md) — Guides the adjustment of CPU and RAM allocations via configuration files to tune environment performance. ([source](https://github.com/codeedu/wsl2-docker-quickstart#readme))
- [Virtual Disk Image Backups](https://awesome-repositories.com/f/data-databases/data-snapshotting/state-snapshots/virtual-disk-image-backups.md) — Provides methods for exporting and importing virtual disk images to create portable backups of the development state.
- [Virtual Disk Overlays](https://awesome-repositories.com/f/data-databases/virtual-disk-overlays.md) — Utilizes dynamically expanding virtual hard disks to map guest file systems to host physical storage.
- [Virtual Disk Resizing](https://awesome-repositories.com/f/data-databases/virtual-disk-overlays/virtual-disk-resizing.md) — Increases the storage capacity of virtual hard disks using system disk management tools. ([source](https://github.com/codeedu/wsl2-docker-quickstart/blob/main/README.md))
- [Disk Compaction](https://awesome-repositories.com/f/data-databases/virtual-disk-overlays/virtual-disk-resizing/disk-compaction.md) — Details how to compact virtual hard disks to reclaim wasted physical space on the host machine. ([source](https://github.com/codeedu/wsl2-docker-quickstart/blob/main/README.md))
- [Sparse Disk Optimization](https://awesome-repositories.com/f/data-databases/virtual-disk-overlays/virtual-disk-resizing/sparse-disk-optimization.md) — Describes the use of sparse mode and compaction to optimize the virtual disk space footprint. ([source](https://github.com/codeedu/wsl2-docker-quickstart#readme))

### System Administration & Monitoring

- [Distribution Image Backups](https://awesome-repositories.com/f/system-administration-monitoring/backup-disaster-recovery/azure-backup-and-restore/backup-and-restore/distribution-image-backups.md) — Provides instructions for exporting and importing environment snapshots as virtual disk files. ([source](https://github.com/codeedu/wsl2-docker-quickstart/blob/main/README.md))
- [System Service Managers](https://awesome-repositories.com/f/system-administration-monitoring/system-service-managers.md) — Enables and manages a system service manager to run complex tools and background processes. ([source](https://github.com/codeedu/wsl2-docker-quickstart#readme))

### User Interface & Experience

- [Graphical Application Runtimes](https://awesome-repositories.com/f/user-interface-experience/graphical-application-runtimes.md) — Launches Linux graphical applications on the Windows host using a specialized subsystem extension. ([source](https://github.com/codeedu/wsl2-docker-quickstart/blob/main/README.md))
- [Graphical Display Servers](https://awesome-repositories.com/f/user-interface-experience/graphical-user-interfaces/graphical-display-servers.md) — Configures display servers to route visual application data from the Linux guest to the Windows host.
