Sridhar Ratnakumar
f731835e45
serve goroutine must refer to the local conn
2013-04-09 15:00:05 -07:00
Guillaume J. Charmes
cb54e9c659
Flush whether or not there we set the rawmode to avoid the client to lock
2013-04-09 09:59:30 -07:00
Guillaume J. Charmes
c83393a541
Move the DockerConn flush to its own function
2013-04-05 20:08:31 -07:00
Guillaume J. Charmes
f73401fb9a
Add missing file
2013-04-08 16:07:12 -07:00
Guillaume J. Charmes
b71b226cc1
Improve error management (avoid unwanted output in tests)
2013-04-08 15:58:09 -07:00
Guillaume J. Charmes
e6e9c1cd62
Use io.WriteCloser instead of *os.File in DockerLocalConn so we can use it with standard writers and pipes
2013-04-08 15:58:09 -07:00
Guillaume J. Charmes
246eed52de
Move DockerLocalConn and terminal functions form package "main" to "rcli" in order to be able to use DockerLocalConn in commands_test.go
2013-04-08 15:58:09 -07:00
Louis Opter
7d0ab3858e
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.
2013-04-08 15:58:09 -07:00
Louis Opter
4e5001b46a
Remove the unused http transport from rcli
2013-04-08 15:58:09 -07:00
Caleb Spare
c298a91f95
Use a *println or *print function instead of *printf where appropriate.
2013-04-01 12:17:00 -07:00
Guillaume J. Charmes
6e507b9460
Add a Debugf() helper and a -D (debug) flag to docker
2013-03-22 11:44:12 -07:00
Solomon Hykes
745edc49cd
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
2013-03-13 00:29:40 -07:00
Solomon Hykes
c59fff422f
gofmt
2013-03-09 19:44:09 -08:00
Solomon Hykes
178e126a07
Fixed a bug which caused dockerd to crash when it received a call without arguments
2013-02-12 09:10:47 -08:00
Solomon Hykes
abb7b81b13
Added comments to rcli
2013-02-12 08:42:15 -08:00
Solomon Hykes
f330c2a248
Disabled remote access to dockerd. Preferred usage is over ssh.
2013-02-12 08:37:12 -08:00
Solomon Hykes
54532e2ab7
Convenience logging in rcli
2013-01-27 15:43:08 -08:00
Solomon Hykes
63fc3e5ab3
rcli.DialTCP(): return a net.TCPConn to allow TCP-specific operations (ie. half-close)
2013-01-25 11:27:47 -08:00
Solomon Hykes
f3ffba7afe
Factored out docker/rcli (remote cli protocol), docker/fake (mocking utilities) and docker/future (real utilities which don't yet fit in the core)
2013-01-24 20:01:32 -08:00