Commit graph

48959 commits

Author SHA1 Message Date
shin-
de50c9c4e8 'docker run' works with paths as well as image IDs 2013-03-12 05:57:19 -07:00
Guillaume J. Charmes
45a8bba15e gofmt 2013-03-12 05:36:37 -07:00
Guillaume J. Charmes
f2dc079c05 Add TestCommitRun unit test 2013-03-12 05:35:47 -07:00
Guillaume J. Charmes
2664668388 Add parent when needed on store.Create, fix the mountpoint on store.layer. 2013-03-12 05:23:13 -07:00
Guillaume J. Charmes
18f4e7e196 Put back the relative paths for dev purpose 2013-03-12 05:17:51 -07:00
shin-
8158616d61 Merge branch 'fs' of github.com:dotcloud/docker into fs 2013-03-12 04:29:06 -07:00
shin-
63dd8f1018 Re-enabled cat, write and ls ; Added creation date to image metadata 2013-03-12 04:24:26 -07:00
Guillaume J. Charmes
e0b09d4933 Add "nuke" function to docker tests to avoid disk space waste 2013-03-12 00:08:41 -07:00
Jérôme Petazzoni
b728c1a81f Add script upload instructions 2013-03-11 23:40:21 -07:00
Jérôme Petazzoni
f90f6a0b92 Get rid of bashism 2013-03-11 23:38:11 -07:00
Jérôme Petazzoni
c1fa4efad6 Try to load, or install, AUFS modules
When running precise or quantal, installing the matching -extra kernel
will install the required file.
2013-03-11 23:20:28 -07:00
Jérôme Petazzoni
fda456b82e Use "start" instead of "restart"
Because when the job isn't running, "restart" won't work.
2013-03-11 23:08:21 -07:00
Jérôme Petazzoni
af2aac8736 Stream and unpack the tarball on the fly
We don't need temporary files.
Also, get the tarball from get.docker.io instead of Dropbox.
2013-03-11 23:07:16 -07: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
jpetazzo
53e2e8209f Add missing shebang
cloud-init expects a shebang in the beginning of the script
2013-03-11 22:41:21 -07: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
Solomon Hykes
132ecb2482 Replaced 'pull' and 'put' with 'import' 2013-03-11 21:04:16 -07: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
Sam Alba
f8fee42181 Missed a rename 2013-03-11 19:55:14 -07:00
Sam Alba
3684b67572 Added -m to the run command in order to set a memory limit to a container 2013-03-11 19:51:24 -07:00
Sam Alba
948961831a Renamed Container property Ram to Memory before it is too late 2013-03-11 19:25:02 -07:00
Sam Alba
4e5ae88372 Implemented unit tests for the generated LXC config 2013-03-11 19:15:29 -07:00
Ken Cochrane
d4da0a0ddb changed the docker version in vagrant to pull down latest version, moved some things around and put docker and dockerd into /usr/local/bin now. Also added git to install package list 2013-03-11 17:48:39 -07:00
Ken Cochrane
43875a73a0 added a fix to the upstart command that wasn't setting hte LOCALE correctly, which was causing issues with UTF-8 bundles 2013-03-11 17:47:28 -07:00
Sam Alba
75d04a5a75 Added support for RamSwap in the generated LXC config (to limit the swap and have the right default settings) 2013-03-11 17:40:54 -07:00
Solomon Hykes
2548722dae Fix a bug which caused dockerd to crash at startup if a container didn't have a registered mountpoint 2013-03-11 17:05:01 -07:00
Charles Hooper
52b811f50a Add all commands to the output of 'dotcloud help'. Fixes #39 2013-03-11 23:11:46 +00:00
Charles Hooper
a7cb3cb86a Complete fix for #38 -- fix double-usage on help 2013-03-11 22:29:13 +00:00
Charles Hooper
06d420d2ea Fix CmdInspect and CmdImages help/parsing. Fixes #38 2013-03-11 22:08:22 +00:00
Sam Alba
a3a946703b Set the memory soft limit to the same value than the hard limit 2013-03-11 14:30:27 -07:00
shin-
5d6199b925 post-merge repairs 2013-03-11 07:39:06 -07:00
shin-
2441edf1a3 Merged upstream changes in fs branch 2013-03-11 05:50:09 -07:00
shin-
97a8209438 Merged master branch into fs 2013-03-11 05:42:36 -07:00
Guillaume J. Charmes
687d6f25ee Change relative paths to absolute 2013-03-11 02:59:52 -07:00
Solomon Hykes
dd0227b700 Removed deprecated docker/image package 2013-03-09 20:17:31 -08:00
Solomon Hykes
b5b2f005eb Fixed a bug which caused dockerd to not create its DB if an empty /var/lib/docker/images existed; fixed a bug which caused dockerd to not create missing tables in the images DB. 2013-03-09 19:56:33 -08:00
Solomon Hykes
4474cd5677 Fixed a bug which caused docker to crash at startup while restoring existing containers 2013-03-09 19:49:09 -08:00
Solomon Hykes
c59fff422f gofmt 2013-03-09 19:44:09 -08:00
shin-
93ba6dd82b Plugged in image store in front-end (some commands are deactivated right now, will progressively reintroduce them 2013-03-08 10:48:22 -08:00
Solomon Hykes
fb350e0c77 Setup a predictable, repeatable environment for containers 2013-03-07 09:25:41 -08:00
Solomon Hykes
2df0bc6bc0 Container logs are persisted on disk 2013-03-06 16:08:44 -08:00
Solomon Hykes
007c57deba Merge branch 'master' of ssh://github.com/dotcloud/docker 2013-03-06 00:39:35 -08:00
Solomon Hykes
410ebe379d docker port: lookup public-facing tcp ports for a container 2013-03-06 00:39:03 -08:00
Solomon Hykes
791592731e Remove leftover debug message 2013-03-06 00:37:00 -08:00
Solomon Hykes
836e7b2881 Moved Vagrant guide to the wiki
Trying to keep the authoritative docs very small, so we can keep it correct and up-to-date.
2013-03-05 22:44:09 -08:00
Solomon Hykes
74c88fdbc0 docker rmi -r: remove all images matching a regexp 2013-03-05 22:39:43 -08:00
Solomon Hykes
711e29fb9b Reorganized README
Moved Install instructions closer to the top.
2013-03-05 16:00:17 -08:00
Solomon Hykes
9f3b1a8ee0 Updated README: networking no longer "coming soon" 2013-03-05 15:58:27 -08:00
Solomon Hykes
d372dacbc9 Updated install instructions and download links
- New binary download links
- Fixed incorrect install instructions
- Merged client and host install instructions
2013-03-01 17:21:26 -08:00