-
Notifications
You must be signed in to change notification settings - Fork 303
Description
Expected behavior
new machine created with docker-machine should work indefinitely, not only 4 minutes and 30 seconds.
Actual behavior
Currently when i create new docker machine using docker-machine create -d hyperv --hyperv-virtual-switch "DockerVMSwitch" vm it creates fully working machine that can be connected and working but only for 4 minutes and 30 seconds. After this time i got error anytime i try to communicate with this machine
Unable to query docker version: Get https://192.168.1.156:2376/v1.15/version: remote error: tls: bad certificate
docker-machine ls after creating machine returns
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
vm - hyperv Running tcp://192.168.1.156:2376 v17.06.0-ce
after 4 minutes and 30 seconds it returns
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
vm - hyperv Running tcp://192.168.1.156:2376 Unknown Unable to query docker version: Get https://192.168.1.156:2376/v1.15/version: remote error: tls: bad certificate
I reinstalled windows 10 with latest image downloaded from Microsoft also downloaded latest stable Docker for Windows.
Before reinstallation it was working without any problem, now it is not working longer than 4 min 30 sec, if i restart machine it starts using docker-machine restart vm it starts working again for some time.
System was idle i did not do anything except spamming docker-machine ls because i wanted to know when it stops working.
This makes docker-machine useless.
I wanted to run docker-machine because i need to access Docker API from docker container. Using default docker machine can be accessed only using tcp://localhost:2375 but i cant access it from inside container. Is it possible to use default api using non localhost address?
Thank you for your help
Information
- Diagnostic ID from "Diagnose & Feedback" in the menu. 839B53E4-479B-4478-AF55-FD3F5FF26ED7/2017-07-09_17-23-24
- a reproducible case if this is a bug, Dockerfiles FTW
- page URL if this is a docs issue or the name of a man page
- host distribution and version (Windows version, build number, etc)
Steps to reproduce the behavior
- Install latest Windows10 Version 1703 (Creators Update)
- Install Docker For Windows, latest version
- run
docker-machine create -d hyperv vm - wait 5 minutes
- run
docker-machine ls