Git Product home page Git Product logo

dockerinstallwin's Introduction

dockerinstallwin

PowerShell Script to Install WSL 2 and Docker Desktop on Windows 10

This PowerShell script checks if virtualization is enabled on your computer, installs WSL 2 and sets it as the default version, downloads and runs the Docker Desktop installer, and checks that Docker is working by running docker info command.

Prerequisites

  • Windows 10 Enterprise, Pro, or Education
  • 64-bit Processor with Second Level Address Translation (SLAT)
  • CPU support for VM Monitor Mode Extension (VT-c on Intel CPUs)
  • Minimum of 4 GB memory
  • Internet connection

Usage

  1. Download or copy the script to your computer and save it as dockerinstallwin.ps1.
  2. Open a PowerShell console as Administrator and navigate to the directory where you saved the script.
  3. Run the script by typing .\dockerinstallwin.ps1.
  4. Follow the prompts and confirmations on the screen. The script will ask you if you want to proceed with each step and will display informative messages and error messages if any.
  5. The script will reboot your computer if virtualization is not enabled in BIOS. You will need to enter BIOS and enable virtualization manually. The script will print the instructions on how to do that before rebooting.
  6. The script will open the Docker Desktop install for Windows web page from Docker documentation for your reference.
  7. The script will exit when it finishes all the steps or encounters an error that prevents it from continuing.

Further info

Enabling virtualisation in BIOS https://pureinfotech.com/enable-virtualization-uefi-bios-windows-11/

Installing WSL https://learn.microsoft.com/en-us/windows/wsl/install

Installing docker Desktop https://docs.docker.com/desktop/install/windows-install/

wsl intro https://learn.microsoft.com/en-us/windows/wsl/setup/environment

docker intro https://docs.docker.com/get-started/hands-on-overview/

wsl documentation https://learn.microsoft.com/en-us/windows/wsl/

docker documentation https://docs.docker.com/get-started/overview/

Free text editors for windows

VScode: (It's not just for visual studio) https://code.visualstudio.com/

notapad++ (This should be Windows default IMHO). https://notepad-plus-plus.org/

Disclaimer

This script is provided "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the script is with you. Should the script prove defective, you assume the cost of all necessary servicing, repair or correction.

dockerinstallwin's People

Contributors

philk27 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.