Docker installation error on windows - docker

I am trying to install Docker client on windows but when i start the installer i get the below pop up .
Can someone please guide me what should the solution to this issue be.
I am using windows 7 enterprise, 64 bit.
Thanks in advance.

Docker requires Windows 10. If you are using Windows 7, use Docker toolbox from the following location
https://docs.docker.com/toolbox/overview/.
As you install the toolbox, automatically the VM virtual box also will get installed. Atleast, that is what happened to me.
After installation, my docker container did not start properly.
So, I uninstalled the VM virtual box, installed it again, then started the kitematic and it was all a great flow to see my docker up and running!
Couple of the links that helped me gain better understanding:
https://github.com/docker/machine/issues/4066
https://github.com/docker/toolbox/issues/291

Related

Docker failed to initialize, Docker Desktop is shutting down win10 Home

ErrorI got an error Docker failed to initialize, Docker Desktop is shutting down.
I uninstalled then restart my computer then I reinstalled again with admin. But couldnt solve this error. I used Windows 10 Home Single Language
How can I solve this error? (I attached screenshot)
Thanks
In windows 10 home, hiperv(hypervisor) to available(but you can also enable it). so you have to use wsl, so follow this guide on how to install docker desktop with wsl.
if you followed the guide, please check,
Windows subsystem for Linux
Virtual Machine Platform
are enabled in Windows features, check this guide if you don't know how to enable them.

Docker for Windows 10 Home

So here's the thing, I'm trying to install Docker but I can't get Hyper-V because I have Windows 10 Home. Is there any solution to run Docker normally? Except using Windows Subsystem for Linux I don't like that option... Any help would be appreciated!
You can download hyper-v on windows home edition using some scripts and it works
Follow steps shown in below link
https://beebom.com/install-hyper-v-on-windows-10-home/

Divio app docker server connection stuck at "installing"

I have a problem with my divio app.
setting up my divio application for the first time, I managed to get a check mark for "docker client", "docker compose", "docker machine" and "virtual box" by installing docker toolbox, however, when trying to install "docker server connection" it seems that Divio app gets stuck at "installing" and nothing actually happens. I left it for hours and nothing happened. What am I getting wrong here? Is it permission issues or something else?
P.S. I'm using windows 7 ultimate 64-bit. Any help is highly appreciated.
Docker, and therefore the Divio local development environment, will run natively on Windows 10 Professional and Enterprise.
On other versions (Windows 10 Home, and earlier versions) it cannot run natively and must be run in a virtual machine.
This is why your installation requires Docker Toolbox and VirtualBox. The best way to get past this is to upgrade to Windows 10 Professional, but that's not an option for everyone.
If the Divio app detects that your system does not support Docker natively, it will do its best to install Docker Toolbox and VirtualBox, but this set-up is more complex and fragile, and as you have seen, setting it up can sometimes fail.
Try these steps:
Quit the Divio application.
Make sure that VirtualBox on your system is fully up-to-date with the latest version. You can download and install it from the VirtualBox website.
Make sure that Docker Toolbox is fully up-to-date with the latest version. You can download and install it from the Docker Toolbox.
Make sure that both applications are able to run if you launch them manually.
Ensure that you are running as an administrator user.
Check that virtualisation is enabled in your PC's BIOS.
Finally, try again with the Divio app.

Issues while installing Docker on Windows 10 home edition

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!

Docker needs to be installed each time I restart the VM in Oracle VirtualBox

I'm totally new to Docker and had few queries with the Docker installation.
I've Windows 7 64 bit OS and installed Oracle Virtualbox to run Ubuntu 16.04 ISO image.
I've installed Docker and it works fine.
The problem I face is, each time I shutdown the VM created in Virtualbox and start it again, I have to run the complete steps to setup Docker again. No settings are saved. Even the documents I save on Ubuntu desktop are gone. Can someone please help me understand as to why this happens?
One doubt I have is, each time when I start Ubuntu, I opt to run from the CD. Could this be the reason?
enter image description here
Yes, you should instead go through the installation. Then you can even disconnect the optical drive to use less resources and avoid confusion in the future.

Resources