Hello i am following a tutorial on DOCKER. But it is on Linux Environement, actually i use DOCKER on WINDOWS.
The purpose is to create an image bind to unix socket with alpine image :
docker container run --rm -it -v /var/run/docker.sock:/var/run/docker.sock alpine
and run a call to Docker Daemon with CURL from the Alpine Shell :
curl -X POST –unix-socket /var/run/docker.sock -d '{"Image":"nginx:1.12.2"}' -H 'Content-Type: application/json' http://localhost/containers/create
But i am on windows ... i tryed :
docker container run --rm -it -v //./pipe/docker_engine://./pipe/docker_engine alpine
But i can't connection :/
and i don't know how to modify the CURL request.
I already checked :
Expose daemon on tcp://localhost:2375 without TLS
Exposing daemon on TCP without TLS helps legacy clients connect to the daemon. It also makes yourself vulnerable to remote code execution attacks. Use with caution.
Thank you for helping me :/