Skip to content

Conversation

@EYOELTEKLE
Copy link

Prevents attempts to enable or start the Docker systemd service when running inside WSL, avoiding unnecessary errors and clarifying that Docker Desktop should be managed via the Windows host. Improves installation script compatibility with WSL systems.

Prevents attempts to enable or start the Docker systemd service when running inside WSL, avoiding unnecessary errors and clarifying that Docker Desktop should be managed via the Windows host. Improves installation script compatibility with WSL systems.
Copilot AI review requested due to automatic review settings November 12, 2025 11:55
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the installation script to properly handle WSL (Windows Subsystem for Linux) environments by detecting when the script is running inside WSL and skipping Docker systemd service operations, which are not applicable in WSL when using Docker Desktop from the Windows host.

  • Adds a new is_wsl() function to detect WSL environments by checking for "microsoft" in /proc/version or /proc/sys/kernel/osrelease
  • Modifies install_docker_ubuntu() to skip Docker service start/enable operations in WSL environments
  • Provides clear user guidance to ensure Docker Desktop is running on the Windows host

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant