Commit Graph

12 Commits

Author SHA1 Message Date
7815b9b259 Only set the terminal in raw mode for commands which need it
The raw mode is actually only needed when you attach to a container.
Having it enabled all the time can be a pain, e.g: if docker crashes
your terminal will end up in a broken state.

Since we are currently missing a real API for the docker daemon to
negotiate this kind of options, this changeset actually enable the raw
mode on the login (because it outputs a password), run and attach
commands.

This "optional raw mode" is implemented by passing a more complicated
interface than io.Writer as the stdout argument of each command. This
interface (DockerConn) exposes a method which allows the command to set
the terminal in raw mode or not.

Finally, the code added by this changeset will be deprecated by a real
API for the docker daemon.
Upstream-commit: 7d0ab3858e51a2cea244da72bb842fe15a5a9ded
Component: engine
2013-04-08 15:58:09 -07:00
6d5af0ec53 Remove the unused http transport from rcli
Upstream-commit: 4e5001b46a3281809db0c6402a3e077fd1bef9cd
Component: engine
2013-04-08 15:58:09 -07:00
2ac307781e Use a *println or *print function instead of *printf where appropriate.
Upstream-commit: c298a91f95dafb056cede9036f5e81f259b8f3e9
Component: engine
2013-04-01 12:17:00 -07:00
71cb06de21 Add a Debugf() helper and a -D (debug) flag to docker
Upstream-commit: 6e507b9460b81e830ef2f5d10035d08e3948fe4d
Component: engine
2013-03-22 11:44:12 -07:00
621d110d7f Merge dockerd into docker. 'docker -d' runs in daemon mode. For all other commands, docker auto-detects whether to run standalone or to remote-control the daemon
Upstream-commit: 745edc49cdcf0dc02fe714b0772f146fc8a66d23
Component: engine
2013-03-13 00:29:40 -07:00
279f7946e3 gofmt
Upstream-commit: c59fff422fdc61c1c994b44fd83e4173a2f0530a
Component: engine
2013-03-09 19:44:09 -08:00
4748d6a7b6 Fixed a bug which caused dockerd to crash when it received a call without arguments
Upstream-commit: 178e126a07d275105c5cf433bab165cdd8c66cff
Component: engine
2013-02-12 09:10:47 -08:00
14c6c26526 Added comments to rcli
Upstream-commit: abb7b81b130ce9ddbb93a962b4ed84af6654e226
Component: engine
2013-02-12 08:42:15 -08:00
2d49a43787 Disabled remote access to dockerd. Preferred usage is over ssh.
Upstream-commit: f330c2a2488b6c26973f0b0fb8da5115588b7f72
Component: engine
2013-02-12 08:37:12 -08:00
8802c173bf Convenience logging in rcli
Upstream-commit: 54532e2ab709a25943a9d0b470ecf5c155deee5f
Component: engine
2013-01-27 15:43:08 -08:00
1bc20b18f2 rcli.DialTCP(): return a net.TCPConn to allow TCP-specific operations (ie. half-close)
Upstream-commit: 63fc3e5ab38893e1359f218a855908a4c0303ace
Component: engine
2013-01-25 11:27:47 -08:00
9dc7d71f11 Factored out docker/rcli (remote cli protocol), docker/fake (mocking utilities) and docker/future (real utilities which don't yet fit in the core)
Upstream-commit: f3ffba7afef9d5caf5eca47e23eda0a2974dd04d
Component: engine
2013-01-24 20:01:32 -08:00