Commit Graph

19 Commits

Author SHA1 Message Date
2f21f794cf serve goroutine must refer to the local conn
Upstream-commit: f731835e4577c414d37fa050aaec1f541511ff6b
Component: engine
2013-04-09 15:00:05 -07:00
00965e0e9e Flush whether or not there we set the rawmode to avoid the client to lock
Upstream-commit: cb54e9c659c681fde5311aacefe0e5ea8c564e17
Component: engine
2013-04-09 09:59:30 -07:00
c8a8294b68 Move the DockerConn flush to its own function
Upstream-commit: c83393a541353ab34612d80cc6b9bb4e92c59597
Component: engine
2013-04-05 20:08:31 -07:00
5d32e30fa3 Add missing file
Upstream-commit: f73401fb9a0993d12da9ef60f265cd0502bb3808
Component: engine
2013-04-08 16:07:12 -07:00
46d56b94a2 Improve error management (avoid unwanted output in tests)
Upstream-commit: b71b226cc1a69be5ce640f07b8de9c129e478360
Component: engine
2013-04-08 15:58:09 -07:00
a479f5cbd8 Use io.WriteCloser instead of *os.File in DockerLocalConn so we can use it with standard writers and pipes
Upstream-commit: e6e9c1cd62bf78e66623950a9f76ef76c6f0f792
Component: engine
2013-04-08 15:58:09 -07:00
2c9d6a2303 Move DockerLocalConn and terminal functions form package "main" to "rcli" in order to be able to use DockerLocalConn in commands_test.go
Upstream-commit: 246eed52de1038ccec462e500b942711735a7c24
Component: engine
2013-04-08 15:58:09 -07:00
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