Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Proposal: Shipping Docker CLI for Windows #80

Closed
7 of 9 tasks
ahmetb opened this issue Mar 16, 2015 · 7 comments
Closed
7 of 9 tasks

Proposal: Shipping Docker CLI for Windows #80

ahmetb opened this issue Mar 16, 2015 · 7 comments

Comments

@ahmetb
Copy link
Contributor

ahmetb commented Mar 16, 2015

We have a full Docker command-line interface for Windows coming up with the Docker 1.6 release and people can now use docker.exe on their Windows machines without ssh-ing to the boot2docker VM.

This proposal is about modifying the Boot2Docker Windows Installer so that people don't need any other package manager or download something to get going with Docker on Windows.

tl;dr gimme the ROADMAP

Updating boot2docker installer

I'm proposing to edit the boot2docker windows installer to:

  1. Bundle docker.exe cli binary in the installer.
  2. Install it to the same dir as boot2docker.exe (e.g. c:\program files\boot2docker\...)
  3. Therefore, have docker.exe in %PATH%.
  4. Update the UX around boot2docker up command and the start menu item "Boot2Docker Start" so that it does not ssh into the b2d VM by default on windows (because user does not need to).
    • This will remove the ssh.exe in %PATH% requirement on windows.

Package Manager Installations

We are planning to distribute docker CLI for Windows mainly with boot2docker installation, however windows has several package managers, like Chocolatey and OneGet. I will be creating docker packages for those and will be maintaining for a few releases and Docker folks can take over any time. (chatted w/ Sven about this)

These package managers will download from an URL (like http://get.docker.com/builds/Windows/x86_64/docker-1.6.0.exe), and add it to %PATH% env var so that people can just use docker.exe CLI without boot2docker or anything. This will be the suggested way to install just the CLI.

Since both b2d and package managers will add the CLI binary (docker.exe) to %PATH%, documentation must suggest using one or the other; not both. For instance, if user has different versions of docker.exe in %PATH%, the look path precedence will come into the picture and in this case we will assume user knows what they are doing and not get in their way.

Documentation

I will be writing/updating docs about the new installation methods as well as the existing Boot2Docker method. I'm also volunteering to shoot video tutorials about this. (moby/moby#11192)

Also, while updating the b2d up cmd and the "Boot2Docker Start" batch script, we may need to add additional instructions to help users understand how to use the docker.exe. I will revisit those as well.

Conclusion

It appears like after the freeze (in 2 days) we will have some 1.6 rc binaries. I will update the installer and start.sh script to reflect the changes and send a pull request.

Thanks if you've read this far, please let me know what you think.


cc: @SvenDowideit @tianon @icecrime @tiborvass @johngossman

@tianon
Copy link
Contributor

tianon commented Mar 16, 2015

Download docker.exe binary from get.docker.com

As long as you don't literally mean that the installer itself will be doing the downloading, I'm +1 and was already planning on including this.

I'm +1 to having start.sh not SSH directly into the VM by default, too.

@ahmetb
Copy link
Contributor Author

ahmetb commented Mar 16, 2015

@tianon

As long as you don't literally mean that the installer itself will be doing the downloading

I guess we can take OS X as an example, I don't know how we deliver the docker CLI binary with the installation. Do we download in the installer or bundle with the installer?

@tianon
Copy link
Contributor

tianon commented Mar 16, 2015 via email

@ahmetb
Copy link
Contributor Author

ahmetb commented Mar 16, 2015

@tianon ok I was obviously speculating about how it works. I'll read the scripts, thanks!

@tianon
Copy link
Contributor

tianon commented Mar 16, 2015 via email

@SvenDowideit
Copy link
Contributor

I just ran make docs from my windows box, and its very nice - thank you :)

@ahmetb
Copy link
Contributor Author

ahmetb commented Apr 28, 2015

Oh forgot to close this lol

@ahmetb ahmetb closed this as completed Apr 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants