Commit Graph

18 Commits

Author SHA1 Message Date
Charles Hooper 1bfd827701 Add native Go downloading functionality with progress bar. Ref #49, #50 2013-03-12 22:08:10 +00:00
Charles Hooper 8e0986caec Error gracefully when an image is not found on pull. Addresses #50 and comments from #49 2013-03-12 05:49:57 +00:00
Charles Hooper b8219b5275 Don't allow images with colons in name and reject pegging versions on pull/import. Addresses #49 and #52 2013-03-12 04:31:49 +00:00
Charles Hooper 63edf8a4a1 Use ioutil.NopCloser instead of opening /dev/null for ReadCloser in CmdRun. Related to #31 2013-03-12 03:18:34 +00:00
Charles Hooper f6d64738d0 Pull missing images on run. Addresses #31.
chooper@chimay:~/projects/docker/bin$ ./docker images
	NAME                ID                  CREATED             PARENT
	chooper@chimay:~/projects/docker/bin$ ./docker run -a base echo "hello world"
	Downloading from http://s3.amazonaws.com/docker.io/images/base
	Unpacking to base
	######################################################################## 100.0%
	base:e9cb4ad9173245ac
	hello world
	chooper@chimay:~/projects/docker/bin$ ./docker run -a base echo "hello world"
	hello world
	chooper@chimay:~/projects/docker/bin$ ./docker run -a nosuchimage echo "hello world"
	Downloading from http://s3.amazonaws.com/docker.io/images/nosuchimage
	Unpacking to nosuchimage
	######################################################################## 100.0%
	Error: Error downloading image: nosuchimage
	chooper@chimay:~/projects/docker/bin$
2013-03-12 02:58:39 +00:00
Solomon Hykes 410ebe379d docker port: lookup public-facing tcp ports for a container 2013-03-06 00:39:03 -08:00
Solomon Hykes 74c88fdbc0 docker rmi -r: remove all images matching a regexp 2013-03-05 22:39:43 -08:00
Solomon Hykes 5675439b91 Re-enabled CmdPull progress bar code which had been temporarily disabled 2013-02-28 16:30:31 -08:00
Andrea Luzzardi f857fa0ddd Server: -p option to export TCP ports 2013-02-28 11:52:22 -08:00
Solomon Hykes 003ec21d36 If curl is installed, 'docker pull' will use it to download images with a pretty progress bar. Otherwise it will fallback to regular http.Get() 2013-02-26 17:28:24 -08:00
Solomon Hykes ebaa50c4c9 docker wait: block until a container exits, and print its exit code 2013-02-26 11:43:54 -08:00
Solomon Hykes f437f5b8b4 'docker pull' and 'docker put' automatically detect tar compression (gzip, bzip2 or uncompressed). -j and -z flags are no longer required. 2013-02-22 12:28:25 -08:00
Solomon Hykes 004272e6f5 docker/server: no more dependency on log 2013-02-19 13:07:25 -08:00
Solomon Hykes dd9bb4e0d3 dockerd: removed debug messages 2013-02-19 13:04:19 -08:00
Solomon Hykes d2885910bd 'docker start' and 'docker restart': start or restart a container 2013-02-14 13:49:05 -08:00
Andrea Luzzardi e871eadab1 Server: Restored -u option (from merge) 2013-02-13 17:41:50 -08:00
Andrea Luzzardi 2f84bab879 go fmt 2013-02-13 17:28:13 -08:00
Solomon Hykes e1b25e9b08 Moved server and client logic into sub-packages docker/server and docker/client, respectively. The UI is not affected. 2013-02-13 17:10:00 -08:00