Starting a machine causes windows 10 host machine to reboot - docker-machine

I'm running windows 10, Visual Studio 2017.
When running the following:
docker-machine ls
when attempting to start the machine:
docker-machine start default
The host (physical machine) is forced to reboot!
It does a clean reboot. What am I doing wrong?
How do I start the docker container without forcing my host to reboot?

Related

How to keep WSL2 running after closing ssh on Windows 10?

I connect to a Windows pc with ssh and use WSL2 which installed in the PC.
The problem is that WSL2 is terminated when I disconnect ssh to the PC(Windows).
I need a way to keep WSL2 running after disconnecting ssh on Windows 10.
How could I do this?

Docker Desktop installation on windows 7 is not working

I've downloaded docker desktop from the website but was unable to open the installer.
My operating system is windows 7.
What are the steps required to install docker desktop on windows 7?
Docker Desktop is not supported on windows 7, you can use Docker toolbox instead.
Do following steps:
Install hyper-v
Install Docker Toolbox and try to follow link instructions
Run Docker Quickstart as admin.
After following above steps, you may not be able to run Docker Quickstart Terminal properly. If so, follow below steps:
Go to window's Start.
type: Environment
click: Edit the system environment variables
Make sure you have VBOX_INSTALL_PATH (should point to VirtualBox installation folder. i.e. C:\Program Files\Oracle\VirtualBox)
Make sure you have VBOX_MSI_INSTALL_PATH (should point to VirtualBox installation folder. i.e. *C:\Program Files\Oracle\VirtualBox*)
Make sure you have VBOX_USER_HOME (e.g. C:\Users\Sara.VirtualBox)
Make sure you have DOCKER_TOOLBOX_INSTALL_PATH in your User variables (i.e. C:\Program Files\Docker Toolbox)
Restart your computer.
Try Running Kitematic. If its not working and you are receiving an error about "default" already existing or config.json missing, do the following:
close Docker Quickstart Terminal if open.
open task manager -> processes.
End process VBoxHeadless.exe
add an empty config.json file manually in %userprofile%.docker\machine\machines\default if config.json is missing.
Run in CMD: docker-machine rm -f default
Run in CMD: docker-machine create -d virtualbox --virtualbox-memory 2048 default
If the above CMD commands failed:
delete folder %userprofile%.docker\machine\machines\default manually
restart computer
run Docker Quickstart Terminal as admin
folder %userprofile%.docker\machine\machines\default should have been created properly at this point.
open kitematic. UI should be presented properly
Problem with "default" project
Failure on "default"
As far as I know, Docker desktop require Windows 10.
https://docs.docker.com/docker-for-windows/install/
System Requirements
Windows 10 64-bit: Pro, Enterprise, or Education (Build 15063 or later).
You will need Win10 pro to install Docker on PC, but otherwise you can still install Docker on PC by downloading Docker Toolbox for Win7,8,10. Link to download Docker Toolbox at:
https://www.softpedia.com /get/Programming/Other-Programming-Files/Docker-Toolbox.shtml

Is it possible to run again docker containers on windows 10 machine after restart of docker toolbox?

I have to restart my windows 10 machine from time to time and it is annoying to reinstall my containers again. Is there away to restart all previous containers after the restart of windows 10 and docker toolbox and not to reinstall containers?

Programming in VS Code with external Docker

I'm working with VS Code installed at Windows 10. On this machine im running a Unix VM with Docker installed. How can I configure VS Code to connect to a remote docker instead of a local docker? HyperV and VMWare doesn't work at the same time.
Install docker extension for vscode. By default it connects to local docker daemon.You can set DOCKER_HOST to valid host to set it to any other host instead of local host

opening file from virtual machine on Windows host machine

I am using Windows 10 on my local machine with vagrant and docker installed for my virtual machine (VirtualBox). When I start docker/vagrant and my virtual machine is running and log in to the development machine, I get this:
root#dev:~#
I have this directory
root#dev:~/boom/properties#
My problem is how to access these folders from my windows host machine and edit the files that are in there.
Look at setting up a sync folder between Windows and Linux.
https://www.vagrantup.com/docs/synced-folders/smb.html

Resources