Solomon Hykes
79d934bfb0
Simplify the output of 'docker images' by removing the PARENT column
2013-04-11 12:11:41 -07:00
Solomon Hykes
54dfedc516
Merge remote-tracking branch 'origin/148-remove_repositories-feature'
2013-04-11 11:36:28 -07:00
Solomon Hykes
0eb7157b6f
Merge remote-tracking branch 'origin/crlf_on_raw_mode'
2013-04-11 11:31:17 -07:00
Victor Vieux
3ba44d2d5f
fixes some usages
2013-04-11 18:46:47 +02:00
Victor Vieux
c105049f7e
display usage when no parameter
2013-04-11 16:27:01 +02:00
Victor Vieux
17136d58f2
snake_case to camelCase
2013-04-11 13:09:40 +02:00
Guillaume J. Charmes
9d1fd2317d
use crlf in login in order to avoir issue due to real raw mode
2013-04-10 19:08:46 -07:00
Guillaume J. Charmes
97f48e59fc
Allow rmi to remove image from its name
2013-04-10 17:23:42 -07:00
Victor Vieux
8bd192fb16
changed last to n
2013-04-10 21:09:21 +02:00
Victor Vieux
8c3331dc97
add -l to docker ps
2013-04-10 19:30:57 +02:00
Solomon Hykes
40ebe78bb1
Bumped version to 0.1.4
2013-04-09 13:00:50 -07:00
Guillaume J. Charmes
1eaaa6b744
Flush stdout on import to avoid deadklock when waiting for stdin (import -). Fixed #365
2013-04-09 10:02:57 -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
7e1e7d14fa
Make sure to flush buffer when setting raw mode
2013-04-05 19:48:49 -07:00
Guillaume J. Charmes
dcf4572a69
Set the raw mode only for tty enabled containers
2013-04-08 16:07:12 -07:00
Guillaume J. Charmes
d530d581f7
Make commands.go more idiomatic. Use DockerConn only when needed, keep io.Writer when not
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
Solomon Hykes
a4fc52305a
Bumping version to 0.1.3
2013-04-04 23:05:03 -07:00
Solomon Hykes
586a79cca0
Merge remote-tracking branch 'dominikh/minor-code-touchups'
2013-04-04 16:20:37 -07:00
Solomon Hykes
26088a72b3
Merge remote-tracking branch 'dominikh/improve-attachopts'
2013-04-04 15:18:41 -07:00
Solomon Hykes
a7f191d51d
Merge remote-tracking branch 'origin/328-i_o_error_uncloced_connection-fix'
2013-04-04 11:03:39 -07:00
Solomon Hykes
dce5a06aba
Bumped version to 0.1.2
2013-04-03 15:35:32 -07:00
Dominik Honnef
4f36039e7b
clean up AttachOpts type
...
Primarily, there is no reason to have a pointer to a map. Furthermore,
make() can be used on AttachOpts directly.
2013-04-03 16:06:35 +02:00
Dominik Honnef
5ecd940a59
remove dead code in CmdPush
2013-04-03 11:08:32 +02:00
Dominik Honnef
3b8c2417fb
use fmt.Fprintf instead of fmt.Fprint
...
fmt.Fprint does not allow format strings
2013-04-03 11:04:33 +02:00
Solomon Hykes
15c3096e89
Merged attachStdin
2013-04-02 20:46:32 -07:00
Solomon Hykes
35c68944c7
Merged shawnsi/git-version
2013-04-02 20:26:22 -07:00
Solomon Hykes
c04af2a330
docker run [-a [stdin|stdout|stderr] [...]]: choose which streams to attach to when running a command. Fixes #234 .
2013-04-02 18:07:16 -07:00
Guillaume J. Charmes
a19a9e3ca8
Discarding errors in CmdRun
2013-04-02 12:21:35 -07:00
Guillaume J. Charmes
6882c78ce4
Add a stdincloser to container.Attach in order to close the client connection when needed
2013-04-02 12:18:20 -07:00
Solomon Hykes
aea2675f7b
Activate Config.StdinOnce at argument parsing
2013-04-02 11:02:19 -07:00
Solomon Hykes
c808940c04
Refactored CmdRun and CmdAttach to use Container.Attach
2013-04-01 23:52:20 -07:00
Caleb Spare
887f509d1d
Don't use an interface{} where a string will do.
2013-04-01 12:56:59 -07:00
Caleb Spare
13d2b08638
A few spelling/grammar corrections.
2013-04-01 12:56:50 -07:00
Caleb Spare
c298a91f95
Use a *println or *print function instead of *printf where appropriate.
2013-04-01 12:17:00 -07:00
Shawn Siefkas
37a78902db
Adding git commit to the version output
...
The Makefile must be used in order to inject the git commit
via -ldflags.
2013-04-01 13:52:45 -05:00
Solomon Hykes
1632566ecb
Show shorthand image IDs for convenience. Shorthand IDs (or any non-conflicting prefix) can be used to lookup images
2013-03-31 22:11:55 -07:00
Solomon Hykes
a6779bcae2
Revert regression introduced in 81eac415ad
, which caused 'docker run -i' to never close stdin
2013-03-31 02:44:56 -07:00
Solomon Hykes
8293a0d533
Bumped version to 0.1.1
2013-03-31 02:18:04 -07:00
Solomon Hykes
0b9a3c86a2
Show shorthand container IDs for convenience. Shorthand IDs (or any non-conflicting prefix) can be used to lookup containers
2013-03-31 02:02:01 -07:00
Solomon Hykes
5a2a044e24
Merge remote-tracking branch 'origin/125-reattach_attached_run_command-fix'
2013-03-31 00:20:31 -07:00
Guillaume J. Charmes
99f9b69716
Add debug infos in CmdInfo to know the amount of fds and goroutines in use
2013-03-30 10:33:10 -07:00
Guillaume J. Charmes
b336d928fe
Make sure to close all pipes when detaching client ( #228 )
2013-03-30 09:47:09 -07:00
Guillaume J. Charmes
81eac415ad
Do not close the stdin of the process when the client deattaches himslef
2013-03-29 09:42:42 -07:00
Guillaume J. Charmes
d17f78c373
Harmonize the error management. Use fmt.Errorf instead of errors.New
2013-03-29 08:19:42 -07:00
Guillaume J. Charmes
ccac5b1382
Add debug infos
2013-03-29 08:18:43 -07:00
Solomon Hykes
b013d93786
Merge remote-tracking branch 'origin/264-remove_cmdAttach_option'
2013-03-29 20:30:43 -07:00
Louis Opter
9740102990
Fix output in the login command
...
It was broken because the terminal is in raw mode.
This changeset adds code in the login commmand to do a little bit of
interpretation on the user input (something usually done by the terminal
emulator itself).
2013-03-29 11:39:41 -07:00
Guillaume J. Charmes
9442d6b349
Remove the options of CmdAttach
2013-03-29 07:49:26 -07:00