I am trying to use Docker on a windows machine and is hit with every possible issue it seems. My latest one is this: My machine is running but I can\'t seem to interact with
docker-machine env --shell cmd default
you will receive following output
SET DOCKER_TLS_VERIFY=1
SET DOCKER_HOST=tcp://192.168.99.102:2376
SET DOCKER_CERT_PATH=C:\Users\DBashyal.docker\machine\machines\default
SET DOCKER_MACHINE_NAME=default
REM Run this command to configure your shell:
REM @FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd default') DO @%i
Copy the highlighted line and execute on cmd
@FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd default') DO @%i
Execute following command
docker ps
As pointed in other answers you need to set a few environment variables.
The easiest way to do it is:
@FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd') DO @%i
This will run docker-machine env --shell cmd
and add those environmental variables.
If you want these variables to be persistent defined them in windows (tutorial).
I was getting this error, while running the command docker-compose up
. The problem for me was, the docker service was not running. So I had to run services.msc
and start the docker service.
Make sure Hyper-V is up and running:
bcdedit /set hypervisorlaunchtype auto
below resolved. i copied answer from another forum
I had this problem after update. After re-installing VB I switched on "VirtualBox NDIS6 Bridged Networking Driver" in properties network connection.
It property switched off default in my case.
The windows switch likely runs the missing configurations that Linux also needs.