Plans for native Windows client?
Hello folks,
I've been a happy user of Docker in my OSX and Linux environment and I've spread the love about it around our company.
However, the missing native client on Windows makes hard to create or test containers easily.
While boot2docker provides an installer and allow you to SSH inside the installed VM, it doesn't provide the piping necessary to connect the host with the VM in order to make Dockerfiles being edited there accessible to B2D and to be able to build them.
boot2docker lacks the ability to use shared folders/volumes with the host, so is hard to do any real container development.
This has been mentioned in boot2docker/boot2docker#29 too.
So was wondering will be possible to achieve something like OSX client (connect to docker via TCP endpoint) natively for Windows?
There are plans for it or just waiting for a champion to tackle such huge mountain of changes? :smile:
Thank you in advance and thank you the entire Docker team for such a great work!
:heart: :heart: :heart:
As far as compilation goes, here's what we're down to:
$ make shell
...
root@6890f6af3a69:/go/src/github.com/docker/docker# DOCKER_CROSSPLATFORMS='windows/amd64' ./hack/make.sh cross
bundles/1.1.2-dev already exists. Removing.
---> Making bundle: cross (in bundles/1.1.2-dev/cross)
# github.com/docker/docker/pkg/system
pkg/system/stat_unsupported.go:7: undefined: syscall.Stat_t
pkg/system/stat_unsupported.go:11: undefined: syscall.Stat_t
# github.com/docker/docker/pkg/term
pkg/term/term.go:16: undefined: Termios
# github.com/docker/libcontainer/devices
vendor/src/github.com/docker/libcontainer/devices/devices.go:65: undefined: syscall.Stat_t
Just chiming in on this. Would be awesome to have docker-client on my windows workstation to control my remote docker host.
Obviously, the same limitation regarding sharing local directories as boot2docker would be present. Personally, I'm fine with that, as long as the docker-client is able to upload the build-context when building a Dockerfile.
+1
poor man's docker client:
alias docker="boot2docker ssh docker"
+1
@SvenDowideit thank you, but the problem is that you cannot transfer/upload native files from your machine for docker to build an image.
Seems someone is already working on that:
https://twitter.com/ahmetalpbalkan/status/526978720657965056
@luislavena there are many ways to acheive that, a native docker client being the most ideal and hardest
using the boot2docker 1.3.0 share, you don't need to upload - your files are in /c/Users/ in the vm - and you can go from there :)
oh, and merci for the link - sounds like 1.4.0 will have more fun ;)
Hi! Based on the poor-mans-docker-client I have started something using vagrant. http://igaffa.blogspot.be/2014/11/docker4windows-docker-on-windows.html https://github.com/gaffa/docker4windows Feel free to contribute. I do not have that much time to implement the missing bits. Also to the boot2docker-Team: feel free to integrate whatever parts you like. Regards
@gaffa considering #9113, and the fact that boot2docker on windows has vbox virtual shares built in - what does your new thing have?
Cool. Theres the link! As commented in the other issue my initiative was based on the lack of a executable for my builds. I decided to use a vagrant box as I did not get stuft running convenient with boot2docker. As soon as there is a docker executable in path, current working dir is mounted and ports exposed in the vm by docker are forwarded on the host there is nothing missing for me any more..
I have removed my repo and blog post as it seems to be working with boot2docker as well. Maybe consider documenting the workaround with alias or .bat-File forwarding the command to boot2docker or even include an alias to boot2docker with the name docker?
#9113 has been merged. That PR adds support for native Windows client.
The question has been answered. The rest can be discussed on the boot2docker repository. Any problems can be discussed in new issues.
The Docker client for Windows will be included in Docker 1.4 and boot2docker will most likely support it.
@unclejack Windows Docker client will probably NOT be included in 1.4. There are still some TTY issues with it and needs more testing, but it is on a very good track. I agree however we can close this issue as things are going quickly, and there is a plan :)
did any got this resolved C:\Go\src\pkg\github.com>\go\bin\go build C:\Go\src\pkg\github.com\docker\docker \docker\docker.go #github.com/docker/docker/pkg/system \go\src\pkg\github.com\docker\docker\pkg\system\stat_unsupported.go:7: undefined : syscall.Stat_t \go\src\pkg\github.com\docker\docker\pkg\system\stat_unsupported.go:12: undefine d: syscall.Stat_t \go\src\pkg\github.com\docker\docker\pkg\system\stat_unsupported.go:15: undefine d: syscall.Stat_t
github.com/docker/docker/pkg/term
\go\src\pkg\github.com\docker\docker\pkg\term\term.go:16: undefined: Termios
github.com/docker/libcontainer/devices
\go\src\pkg\github.com\docker\libcontainer\devices\devices.go:73: undefined: sys call.Stat_t