Commit Graph

248 Commits

Author SHA1 Message Date
348d75b3b5 Delete corresponding Devices when deleting Images
If an image is deleted and there is a corresponding device
for that image we also delete the image.
Upstream-commit: 99393cf3cfd08de769f0c37f06b912fb3771a080
Component: engine
2013-09-30 17:35:00 -06:00
4f27979b41 Runtime: Add DeviceSet singleton
This adds a DeviceSet singleton to the Runtime object which will be used for
any DeviceMapper dependent code.
Upstream-commit: ca2f7f955e697091f2b7bee9a33c6c4e106cecd0
Component: engine
2013-09-30 17:34:59 -06:00
6c1aee42e6 Server: Pass in device-mapper DeviceSet to server
This makes docker (but not docker-init) link to libdevmapper and will
allow it to use the DeviceSet
Upstream-commit: 1d36b8c7b7b0c943ccb7d69b7181b3e33566d77c
Component: engine
2013-09-30 17:34:59 -06:00
f9de2ea5c3 Merge pull request #1842 from dotcloud/split_stdout_stderr
* Runtime: Split stdout stderr
Upstream-commit: f435970695e896ae8532cd0850700ae56d0b0516
Component: engine
2013-09-26 18:05:24 -07:00
c6a1c7cdae Update docs + fix endian issue
Upstream-commit: cb18a6e1b934b7f5c63f8931ee8fe51e2789c597
Component: engine
2013-09-26 17:36:21 -07:00
eac5eb816d Make StdCopy works with huge amount of data
Upstream-commit: e854b7b2e6666d8b47f2c9714ac3bef2320fc40b
Component: engine
2013-09-11 14:49:33 -07:00
66b0c6b946 Split stdout stderr for non-tty commands
Upstream-commit: 8ae5348a51ab6026db29009f109bb3724908f0aa
Component: engine
2013-09-11 14:48:22 -07:00
f64d317995 Fixed push bug
Upstream-commit: c6dc90ccb9a77dab9f40c13be7465a759a25885b
Component: engine
2013-09-11 19:39:33 +02:00
0d8ea16762 Merge pull request #1759 from bdon/graph-map
Minor refactor of Graph; replace uses of Graph.All (slice) with Graph.Map (map)
Upstream-commit: ad152efbed6ddb74a352c39147bae9b0e8c87435
Component: engine
2013-09-10 08:49:11 -07:00
108dc7f51c Merge pull request #1796 from shin-/api_1_5
*Remote API: Bumped API version to 1.5
*Registry: Implement login with private registry
*Remote API: Improve port mapping information 
Upstream-commit: 2801624462a4b3842930d38b09a5039629d1a5d3
Component: engine
2013-09-09 16:58:54 -07:00
bddbd1b5d0 Merge branch 'filter' of https://github.com/reds/docker into reds-filter
Upstream-commit: 843f9091f25eee67a8c858ddf9b61d630b17a11d
Component: engine
2013-09-09 22:16:16 +00:00
7f77532ae1 Merge pull request #1825 from dotcloud/merge-builder-runtime
Refactor to merge builder.go into runtime.go
Upstream-commit: e503f6a87802d388cc8c9829c4f1eacbab1a13a6
Component: engine
2013-09-09 15:11:41 -07:00
3b3fbee916 Push tags to registry even if images are already uploaded
Upstream-commit: 64bc08f1c4bee42ff5a17b2d6ababb288fd8f209
Component: engine
2013-09-09 21:02:37 +02:00
aa0ad01db6 Merge builder.go into runtime.go
Upstream-commit: 24e02043a2672320abebc3bd5fa6a592e2ebd082
Component: engine
2013-09-06 17:33:05 -07:00
99856a0342 filter image listing using path.Match
Upstream-commit: b44d11312054d1d7bc0f0bbc8eeaddc2d30c26cc
Component: engine
2013-09-06 16:16:10 -04:00
b385774680 improve image listing
Upstream-commit: 35bcba80116668864380319d9b6fe0249cefd114
Component: engine
2013-09-06 15:51:49 -04:00
b1857983d6 Merge branch 'mhennings-1357-implement-login-with-private-registry' into api_1_5
Upstream-commit: 98a1314251cf5d0ffe0f9d44055e8e73ff368947
Component: engine
2013-09-04 22:27:04 +02:00
32d6ba57cb Compute dependency graph and upload layers in the right order when pushing
Upstream-commit: b3a70d767d913ec476bc1af53983c91a10d17f84
Component: engine
2013-09-04 02:21:40 +02:00
e60a2a9f3c Login against private registry
To improve the use of docker with a private registry the login
command is extended with a parameter for the server address.

While implementing i noticed that two problems hindered authentication to a
private registry:

1. the resolve of the authentication did not match during push
   because the looked up key was for example localhost:8080 but
   the stored one would have been https://localhost:8080

   Besides The lookup needs to still work if the https->http fallback
   is used

2. During pull of an image no authentication is sent, which
   means all repositories are expected to be private.

These points are fixed now. The changes are implemented in
a way to be compatible to existing behavior both in the
API as also with the private registry.

Update:

- login does not require the full url any more, you can login
  to the repository prefix:

  example:
  docker logon localhost:8080

Fixed corner corner cases:

- When login is done during pull and push the registry endpoint is used and
  not the central index

- When Remote sends a 401 during pull, it is now correctly delegating to
  CmdLogin

- After a Login is done pull and push are using the newly entered login data,
  and not the previous ones. This one seems to be also broken in master, too.

- Auth config is now transfered in a parameter instead of the body when
  /images/create is called.
Upstream-commit: fcee6056dc50de7698772a3049cdfa1eb0f2416f
Component: engine
2013-09-03 20:45:49 +02:00
c7e2ec175d Replace Graph.All with Graph.Map
Upstream-commit: 1fca99ad908c530fcd03158a56767b55500a8521
Component: engine
2013-08-31 20:44:42 -07:00
828c933a0c More descriptive, easier to process container portmappings information in the API
Upstream-commit: 98018df07856811536722df84b9558e0efdabdca
Component: engine
2013-08-28 00:20:35 +02:00
5443b4f352 Use additional decorator in RequestFactory to pass meta headers to registry
Upstream-commit: 093b85b72f7a0fcda292816716e795543b3a72eb
Component: engine
2013-08-22 21:15:31 +02:00
7e4d72163b Fix race conditions in parallel pull
During parallel pull of a repostiory it can happen that the same layer
is pulled more than once.

To fix this I have extended the locking code to
- avoid multiple pulls of the same image
- avoid multiple pulls of the same layer


If an error occurs the other layers are awaited before returning as leaving
the scope before the go routines leave causes crashes of the server sometimes
if the download status is updated while the http stream is already closed


Beside this I have extended status display.


Upstream-commit: 3f802f4a13cc9d35118420f7c769a8b3531476c8
Component: engine
2013-08-22 13:23:43 +02:00
8a0c775435 Merge pull request #1588 from dotcloud/1561_fix_warning_in_tests
assume ip_forwarding = 1 by default
Upstream-commit: 56e02dd0c7f1eac50d05d272d8f597a79a370ab7
Component: engine
2013-08-21 09:15:23 -07:00
20388436a9 Merge pull request #1396 from calavera/985-ordered-api-images
Sort APIImages by most recent creation date.
Upstream-commit: 04c16f347bd7fc6f361debc7c0cddcde06aa56ba
Component: engine
2013-08-19 09:41:39 -07:00
9fd5016532 assume ip_forwarding = 1 by default
Upstream-commit: b21f89862076397b63eb3ac4a19b9125b6f6477a
Component: engine
2013-08-19 12:34:30 +00:00
2845552dec Sort images by tag name when the creation date is the same.
This establishes a strict alphabetical order for tags with the same creation date.
Upstream-commit: e6affb1b1ac0a172ce345d14162f6944ec68da4e
Component: engine
2013-08-17 22:11:34 -07:00
caadb4bcda Show tag used when image is missing
Upstream-commit: 07a887032af78e5014d635f7e1d669d49b50894d
Component: engine
2013-08-17 20:03:54 -07:00
951194f6f0 Merge pull request #1505 from dotcloud/improve_events
Add image name in /events
Upstream-commit: 15bc2240ac56a3f584bdc33865c896bac961c6a3
Component: engine
2013-08-14 15:40:36 -07:00
f090475575 add missing ParseRepositoryTag
Upstream-commit: c84d74df8c17f50c8ca7f5027ade4db8360f5ed3
Component: engine
2013-08-14 16:59:21 +00:00
efc4a51c0c Fixed typos
Upstream-commit: 9b2a5964fc2067014f24e26bd2f99873751ebdc3
Component: engine
2013-08-12 18:53:06 +01:00
2037ff0102 ensure the use oh IDs and add image's name in /events
Upstream-commit: 703905d7ece5b4a71ae1faf2743341ace98c4fbb
Component: engine
2013-08-12 11:50:03 +00:00
232667a23e fix docker build and docker events output
Upstream-commit: 213365c2d27734bfbeeb1fc102fded7625550982
Component: engine
2013-08-08 22:51:39 +00:00
800fcaba4c Merge branch 'master' into add_some_tests
Upstream-commit: be77ee33bca2399b4eb6749253b9c3ab18915783
Component: engine
2013-08-08 14:44:56 +00:00
490527a43f Merge pull request #1425 from dotcloud/simplify_ProgressReader
- Runtime: fix small \n error un docker build
Upstream-commit: 6249cc3373ccc18ae154a8861bb98e772639c0ce
Component: engine
2013-08-07 16:19:42 -07:00
c746f1a64f Add warning when net.ipv4.ip_forwarding = 0
Added warnings to api.go, container.go, commands.go, and runtime.go
Also updated APIInfo to return whether IPv4Forwarding is enabled
Upstream-commit: 10190be5d74bc4b13a885f2ba27c2299c868fd19
Component: engine
2013-08-07 18:28:39 -04:00
41cf866a86 Merge pull request #1093 from monnand/910-login-info
* Runtime: fixed #910. print user name to docker info output
Upstream-commit: 65a4e308258f4cd85237adf4934c630e3b8f1039
Component: engine
2013-08-07 15:09:55 -07:00
3ea6442a29 Add cp command and copy api endpoint
The cp command and copy api endpoint allows users
to copy files and or folders from a containers filesystem.

Closes #382
Upstream-commit: 5b8cfbe15c29efd3e72ea97ba87867590aeeba25
Component: engine
2013-08-06 16:09:54 +00:00
82d1681ff0 fix small \n error un docker build
Upstream-commit: ba17f4a06a75a66e11b6cf2ca2cdb5bee4f7bfa8
Component: engine
2013-08-06 14:31:51 +00:00
2eadef5023 Added index address into APIInfo.
Upstream-commit: 303490168fb53af2528375ca9ec818c7a179a044
Component: engine
2013-08-05 23:36:55 -04:00
d457571635 rebase master
Upstream-commit: 946bbee39a33b229b9da39e0f2062d43dde8dcee
Component: engine
2013-08-05 16:25:42 +00:00
86120a1f50 Sort APIImages by most recent creation date.
Fixes #985.
Upstream-commit: cd6aeaf97912a0c18994c978a4b58678e671d9ee
Component: engine
2013-08-03 15:35:36 -07:00
9660113205 factory generated from one place.
Upstream-commit: 5bc344ab73f73a1fb5bea0933a031ad0418cb8f8
Component: engine
2013-08-02 04:10:26 -04:00
1c96da0a53 auth with user agent
Upstream-commit: 4bd287e107eab1623a0e77aeaecda77fc26e7536
Component: engine
2013-08-02 03:30:45 -04:00
4e4b48bb11 Server now use request factory
Upstream-commit: 6a56b7b391ac967540915c2ee8f82b23714ad84c
Component: engine
2013-08-02 03:23:46 -04:00
5eea0cead3 Merge pull request #1328 from dotcloud/1307_url_port_delete-fix
Use utils.ParseRepositoryTag instead of strings.Split(name, ":") in server.ImageDelete
Upstream-commit: 0c0077ed6f044f83fff75f2d7a696491fb7fe360
Component: engine
2013-07-31 07:55:06 -07:00
60591c4d11 rebase master
Upstream-commit: 6166380d76ad49b0a077569466b29b5352df9105
Component: engine
2013-07-30 16:51:50 +00:00
eac2c76be1 Merge pull request #1268 from dotcloud/refactor_checksum
Refactor checksum
Upstream-commit: bcd6ca368556c329063d58c32945753f783adc75
Component: engine
2013-07-30 06:07:54 -07:00
d2c440fbc7 add parallel pull to 1.4
Upstream-commit: 46f59dd9333baa578b184eb25b386ac2f41caf04
Component: engine
2013-07-30 12:15:33 +00:00
d85812a80e rebase master
Upstream-commit: e1fa989ec9a2355da2a87707f4909647b69831b3
Component: engine
2013-07-30 11:59:31 +00:00