@CarlosRafaelRamirez mentioned the right place, but I will add a few details and give more detailed step-by-step instructions, since Windows developers often do not own the Linux ecosystem.
Disclaimer : The following steps allow you to use the Docker Remote API from a Windows host, but keep two things in mind:
- This should not be done in production, as this makes the Docker very unsafe.
docker-machine docker CLI. docker-machine ssh , SSH - docker.
, Docker API -TLS. (, " ". , .)
- "Docker Quickstart Terminal". Bash , .
docker-machine ip IP- - . docker-machine sshcd/var/lib/boot2dockersudo vi profile "vi" , "profile", Docker. ( , Windows, vi, . vi, vi . "i", . . , , Esc ZZ vi. vi , Esc :q! Enter. ":" vi mode "q!" . vi .)- vi, DOCKER_HOST
DOCKER_HOST='-H tcp://0.0.0.0:2375' DOCKER_TLS=no. , . exit SSH.docker-machine restart
doocker- URL- API- , , http://dokerMachineIp:2375/containers/json?all=1, JSON.
, .
, docker-machine config docker images, , , CLI docker Docker /TLS, . , , , , export DOCKER_HOST=tcp://192.168.99.101:2375 export DOCKER_TLS_VERIFY=0,
$ env | grep DOCKER
DOCKER_HOST=tcp://192.168.99.101:2375
DOCKER_MACHINE_NAME=default
DOCKER_TLS_VERIFY=0
DOCKER_TOOLBOX_INSTALL_PATH=C:\Program Files\Docker Toolbox
DOCKER_CERT_PATH=C:\Users\USERNAME\.docker\machine\machines\default
:
$ docker-machine env
TLS: / : "192.168.99.101:2376"
, , , Docker Docker, .
, docker-machine ssh docker.