I am trying to have my Windows 10 Enterprise LTSC (IOT) on run WSL 2. I'm at the latest LTSC Version (1809, build 17763) and have WSL 1 enabled, however installing WSL 2 seems to be limited to the Version 1903 and above, which isn't available for the LTSC configuration. Has anyone got a workaround for LTSC builds to get WSL 2 installed?
I'd like to have Docker's WSL 2 backend running, which is a requirement for Laravel's Sail Environment
Related
I am unable to start Docker Desktop (windows 10).
I have installed version 4.16.3 (which claims to have this issue resolved).
After few minutes of having message "Docker Desktop Starting..." I get error that I need to update wsl - despite it is already in it's latest version.
Also I noticed that Linux distro docker-desktop was not installed.
What might be the issue? How to make it work?
I'm trying to make docker applications using Ubuntu 18.04 LTS.
I have installed Docker Desktop and am trying to use Python for application code.
I cannot seem to manage to get this working, I end up getting the same error :
The command 'docker' could not be found in this WSL 1 distro.
We recommend to convert this distro to WSL 2 and activate
the WSL integration in Docker Desktop settings.
I tried several suggestions on the Internet, without any succes.
The main problem resides, I think, in the fact that I am trying to run Docker Desktop on Windows Home. Can anyone help out?
Judging from the error message, you have installed Docker in Windows, not in Ubuntu. Is that correct?
You would need to install Docker directly on your Linux distro (Ubuntu 18.04 LTS, here's how) or use WSL version 2. Only with WSL 2 it's possible to use Docker Desktop on Windows with WSL.
You can find a comparison of WSL 1 and 2 here: https://learn.microsoft.com/en-us/windows/wsl/compare-versions
Convert your Ubuntu installation to WSL 2 using these instructions:
https://learn.microsoft.com/en-us/windows/wsl/basic-commands#set-wsl-version-to-1-or-2
In powershell run the command:
wsl --install
This command will enable the required optional components, download
the latest Linux kernel, set WSL 2 as your default, and install a
Linux distribution for you (Ubuntu by default, see below to change
this).
https://learn.microsoft.com/en-us/windows/wsl/install
If this didn't work then you can manually set the WSL 2 as your default following the below link:
https://learn.microsoft.com/en-gb/windows/wsl/install-manual#step-5---set-wsl-2-as-your-default-version
And then you can open Docker Desktop and enable WSL 2.
Go to Settings -> General
WSL 2 based engine
Select the Use WSL 2 based engine check box. And then click Apply & Restart.
Then go to Settings -> Resources -> WSL INTEGRATION
Select distro
Select the Enable integration with my default distro
And select your distro, for example ubuntu and click Apply & Restart.
Finally you should be able to execute docker command in you ubuntu WSL
I tried to install docker desktop but it giving me this error. WSL2 is installed and enabled in my desktop. Virtulization is enabled in my desktop. Please help me with this issue.
component communityinstaller.enablefeaturesaction failed: invalid namespace
Check this items :
Enable Virtual Machine feature
Download and Install the Linux kernel update package
Set WSL 2 as your default version wsl --set-default-version 2
Set your distribution version to WSL 2 wsl --set-version <distribution name> 2
Edit
If this method does not fix your problem, you might need to use This PC Reset.
Prepare the lastet install file(download from official website)
Go to Windows Services (you can launch by services.msc)
Find out the service "Docker Desktop Service", then stop it manually.
Execute the install file you prepared.
Expected it will install well.
ref from my blog Docker Desktop Upgrade Failed
While attempting to install, in VS Code, the Fabric samples and binaries through the curl command :
I've encountered the following error, as soon as Fabric docker images are pulled :
The command 'docker' could not be found in this WSL1 distro. We recommend to convert this distro into
WSL 2 and activate the WSL integration in Docker Desktop settings.
N.B: Docker version 20.10.0-beta1
Thus any relevant feedback, not impacting the usage of the IBM Blockchain Platform v.1.0.39 (e.g. prerequisites installed), would highly be appreciated.
Best
See the Docker Desktop WSL 2 backend guide.
Specifically, you need to convert your Ubuntu distribution to WSL2 (it is currently WSL1). To do so, see Step 6 in the Install section:
To upgrade your existing Linux distro to v2, run:
wsl.exe --set-version Ubuntu 2
Either that, or create a new WSL instance by backing up the WSL1 version (wsl --export) and then importing it into a new copy (wsl --import). See wsl --help for the parameters needed.
Then proceed with the rest of the Docker installation instructions.
in my case, resolved by enabling the WSL2 distro option in the docker settings.
As the log says (in your qusetion)
We recommend to convert this distro into WSL 2 and activate the WSL integration in Docker Desktop settings.
in Docker Settings
go Resources
go WSL INTEGRATION
check Enable integration with my default WSL distro
Apply & Restart
I faced the same issue and solved it by navigating to: docker desktop > Resources > wsl integration then choose the right distro for integrating docker with.
I am getting below error When I try to install Docker on Windows 10 Home Edition.
[21:20:49.129] [InstallWorkflow] Pre-requisite failed: Docker for Windows requires Windows 10 Pro or Enterprise version 14393, or Windows server 2016 RTM to run
Can I Install Docker on Windows 10 Home Edition?
Edit Windows Version in Registry
Press Windows + R and write regedit
In the Registry Editor, go to \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
Right-click on EditionID and Click Modify
Change Value Data to "Professional"
Press OK.
Install Docker
After the installation, you can change the EditionID back to "Core"
As the error says, you cannot use Docker in the Home edition. You need "Windows 10 Pro or Enterprise version 14393, or Windows server 2016 RTM."
Check out their documentation here, which mentions, on 04/05/2018:
The current version of Docker for Windows runs on 64bit Windows 10
Pro, Enterprise and Education (1607 Anniversary Update, Build 14393 or
later).
As already mentioned in the comments, you might want to try the legacy Docker Toolbox:
Docker Toolbox is for older Mac and Windows systems that do not meet
the requirements of Docker for Mac and Docker for Windows.
Docker for Windows requires Hyper-V which is not included in Home edition.
You'll need to upgrade Windows to the Education or Pro edition.
https://docs.docker.com/docker-for-windows/install/#what-to-know-before-you-install
Also see this comment on GitHub.
You can already install Docker Desktop on Windows 10 Home.
This is how I did it:
You need to join Windows Insiders Program because you need WSL 2
You need to download the specific version of Docker Desktop: https://download-stage.docker.com/win/edge/41944/Docker%20Desktop%20Installer.exe which has a required change - allows install it on Windows 10 Home.
Those who have Windows Home Edition can now download and install Docker Desktop from below link.
https://docs.docker.com/docker-for-windows/install-windows-home/
Although not on Win10 Home per se, for evaluation purposes you can install Docker Desktop on a Win10 Pro virtual machine (VMWare player is my personal choice). You'll need to install VMWare Workstation Player which is free, and obtain a perfectly legal Win10 Pro image from microsoft directly here: https://www.microsoft.com/en-us/software-download/windows10
Be sure to activate the virtualization engine of the machine as Docker relies on Hyper-V:
This is how I resolved the problem. (OS- windows 10 home)
Join windows insider program. It enables you to update latest content of windows 10. You can find it in the start-> settings. Make sure to select Release Preview in the Insider program.(otherwise you will not get latest updates. After the installation you can pause frequent updates)
Check for windows update and update windows to latest version.(This will take awhile)
Install WSL 2 Linux kernel
https://learn.microsoft.com/en-us/windows/wsl/wsl2-kernel
I had below issue because I have tried to install this before updating windows. Please read the document carefully and follow steps.
If the installer cant find WSL 1 right click the Linux kernel update
installer, then press uninstall then rerun the installer
Now you are ready to update to WSL 2. Follow steps of this doc
https://learn.microsoft.com/en-us/windows/wsl/install-win10
Open PowerShell as Administrator and run:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Enable the 'Virtual Machine Platform'
Open PowerShell as Administrator and run:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Restart your machine to complete the WSL install and update to WSL 2.
You can verify whether this by looking at task manager.
*Set WSL 2 as your default version
In PowerShell: wsl --set-default-version 2
Now you can install docker desktop version.
Finally https://docs.docker.com/docker-for-windows/
This might not work for some. If you find any issues please post. I'll try to help.
This might help someone who cannot upgrade their system to pro or professional. Consider installing Docker Toolbox on Windows. For mac users: Docker Toolbox on Mac
Legacy desktop solution. Docker Toolbox is for older Mac and Windows systems that do not meet the requirements of 'Docker Desktop for Mac' and 'Docker Toolbox on Windows'. We recommend updating to the newer applications, if possible.
As per documentation, the toolbox includes these Docker tools:
Docker Machine for running docker-machine commands
Docker Engine for running the docker commands
Docker Compose for running the docker-compose commands
Kitematic, the Docker GUI
a shell preconfigured for a Docker command-line environment
Oracle VirtualBox
Get the latest update from https://www.microsoft.com/en-us/software-download/windows10 and it will work.
First of all I'd like to thank the previous respondents to this questions - saved me a lot of time and yes, they are both correct.
Secondly as a small completion to their answer, in case you are wondering where you can get a Pro version of Windows without breaking the bank, you can get a relatively cheap and legal Windows 10 pro cd-key from ebay and upgrade you version from Windows settings -> Activation.
https://www.ebay.com/sch/i.html?_from=R40&_nkw=windows+10+pro&_sacat=0&_sop=15
Just make sure you read the sold product description well and eventually the reviews if there are so that you know what to expect (if you encounter any issue, ebay will refund your purchase).
Best of luck to you all!