David Sissitka
d48ea32186
Updated postContainersCreate to use writeJSON.
2013-09-11 01:26:26 -07:00
David Sissitka
33e4d73629
Replaced leading spaces with tabs.
2013-09-11 01:07:05 -07:00
David Sissitka
07324a37eb
Rebased.
2013-09-11 01:03:17 -07:00
David Sissitka
dd49cc45c8
Added a status code argument to writeJSON.
2013-09-11 00:23:53 -07:00
Victor Vieux
f482432a76
improved hostConfig reload
2013-09-10 22:13:15 +00:00
Victor Vieux
2801624462
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
2013-09-09 16:58:54 -07:00
Michael Crosby
f3d51bb3d5
Merge pull request #1810 from dotcloud/1798-inspect-fix
...
Detect images/containers conflicts in docker inspect
2013-09-05 17:17:09 -07:00
Victor Vieux
0d7044955a
remove unused getCache endpoint
2013-09-05 23:00:52 +00:00
Victor Vieux
5ec2fea6dd
Detect images/containers conflicts in docker inspect
2013-09-05 22:31:17 +00:00
shin-
9ae5054c34
Bumped API version in api.go ; added <1.5 behavior to getContainersJSON
2013-09-04 23:41:44 +02:00
shin-
dd4aab8411
Use base64 encoding
2013-09-03 20:59:48 +02:00
shin-
d04beb7f43
Pass auth config through headers rather than as URL param
2013-09-03 20:59:48 +02:00
Marco Hennings
a2603477dd
Merge on current master
2013-09-03 20:59:48 +02:00
Marco Hennings
da3bb9a7c6
Move authConfig to a Parameter on postImagePush, too
2013-09-03 20:59:48 +02:00
Marco Hennings
fcee6056dc
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.
2013-09-03 20:45:49 +02:00
David Sissitka
f6b56e996d
Updated "POST /containers/create" to return the right Content-Type.
2013-08-29 09:14:14 -07:00
shin-
093b85b72f
Use additional decorator in RequestFactory to pass meta headers to registry
2013-08-22 21:15:31 +02:00
Victor Vieux
b21f898620
assume ip_forwarding = 1 by default
2013-08-19 12:34:30 +00:00
Daniel Mizyrycki
999a8d7249
API, issue 1471: Allow users belonging to the docker group to use the docker client
2013-08-12 15:16:49 -07:00
Michael Crosby
3e12349831
Merge pull request #1484 from titanous/use-range
...
Use ranged for loop on channels
2013-08-09 18:06:12 -07:00
Jonathan Rudenberg
7c50221de5
Use ranged for loop on channels
2013-08-09 20:42:20 -04:00
Guillaume J. Charmes
92cd2f5bad
Merge pull request #1146 from benoitc/feature/attach_ws
...
* Runtime: add websocket support to /container/<name>/attach/ws
2013-08-09 15:38:24 -07:00
Michael Crosby
28d38620f0
Merge pull request #1417 from crosbymichael/root-socket
...
Change daemon to listen on unix socket by default
2013-08-08 17:06:49 -07:00
Colin Rice
3e491f8698
Fix reversed IPv4Forwarding check in api.go
2013-08-07 18:28:40 -04:00
Colin Rice
10190be5d7
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
2013-08-07 18:28:39 -04:00
benoitc
e2ca600fd8
Merge branch 'feature/attach_ws' into feature/attach_ws2
...
Conflicts:
api.go
2013-08-07 23:30:28 +02:00
Michael Crosby
d94b186080
Strip leading forward slash from resource
2013-08-06 16:09:54 +00:00
Michael Crosby
5b8cfbe15c
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
2013-08-06 16:09:54 +00:00
Michael Crosby
754ed9043d
Use mime types to parse Content-Type
2013-08-06 15:57:13 +00:00
Michael Crosby
8934f13615
Change daemon to listen on unix socket by default
2013-08-06 00:12:56 +00:00
Victor Vieux
946bbee39a
rebase master
2013-08-05 16:25:42 +00:00
Victor Vieux
feda3db1dd
Merge pull request #1382 from monnand/650-http-utils
...
650 http utils and user agent field
2013-08-05 08:49:12 -07:00
Guillaume J. Charmes
3e9575e275
Consider empty /etc/resolv.conf as local dns + add unit test
2013-08-02 15:23:36 -07:00
Michael Crosby
3a123bc479
Add no cache for docker build
...
Add a new flag to disable the image cache when building images.
2013-08-02 16:18:54 +00:00
Nan Monnand Deng
4bd287e107
auth with user agent
2013-08-02 03:30:45 -04:00
Victor Vieux
0c0077ed6f
Merge pull request #1328 from dotcloud/1307_url_port_delete-fix
...
Use utils.ParseRepositoryTag instead of strings.Split(name, ":") in server.ImageDelete
2013-07-31 07:55:06 -07:00
Victor Vieux
a7068510a5
fix same issue in api.go
2013-07-31 08:01:20 +00:00
Victor Vieux
46f59dd933
add parallel pull to 1.4
2013-07-30 12:15:33 +00:00
Victor Vieux
0b57e4483a
Merge branch 'master' into 1237-improve_docker_top-feature
2013-07-30 11:51:16 +00:00
Victor Vieux
f4b41e1a6c
fix tests
2013-07-24 12:28:22 +00:00
Victor Vieux
4bc3328e80
bump master
2013-07-24 12:18:53 +00:00
Victor Vieux
8b3519c5f7
getEvents a bit simpler
2013-07-23 15:42:34 +00:00
Victor Vieux
2e4d4c9f60
add since for polling, rename some vars
2013-07-23 15:41:19 +00:00
Victor Vieux
b5da816487
basic version of the /events endpoint
2013-07-23 15:41:19 +00:00
Victor Vieux
3bae188b8d
change dockercfg to json and support multiple auth remote
2013-07-23 15:07:18 +00:00
Victor Vieux
eb4a0271fb
bump api version to 1.4
2013-07-19 10:34:55 +00:00
Victor Vieux
cfec1c3e1b
add ps args to docker top
2013-07-19 10:06:32 +00:00
Guillaume J. Charmes
de563a3ea3
Merge pull request #1194 from crosbymichael/build-verbose
...
* Builder: Add verbose output to docker build
2013-07-17 12:53:06 -07:00
benoitc
d639f61ec1
reuse the type
2013-07-13 19:19:38 +02:00
Victor Vieux
50e45b485f
Merge pull request #1190 from dotcloud/1189-add_debug_error
...
* RemoteAPI: Improve debug
2013-07-13 08:15:59 -07:00
benoitc
a3b1a9f01a
useless function. forgot to remove it.
2013-07-13 17:04:04 +02:00
benoitc
507cef8bce
useless type
2013-07-13 17:03:04 +02:00
benoitc
166eba3e28
put the websocket route in the map containing all routes
...
Instead of handling the websocket differently just handle it as a normal
route and upgrade it to a websocket.
2013-07-13 17:00:40 +02:00
Victor Vieux
9232d1ef62
Merge branch 'master' into list_container_processes-feature
2013-07-12 11:47:27 +00:00
Michael Crosby
474191dd7b
Add verbose output to docker build
...
Verbose output is enabled by default and
the flag -q can be used to suppress the verbose output.
2013-07-11 15:27:33 -09:00
Victor Vieux
b7937e268f
add debug for error in the server
2013-07-11 12:21:43 +00:00
Victor Vieux
a0f5fb7394
add remote addr in debug
2013-07-08 12:45:50 +00:00
benoitc
8eeff01939
add websocket support to /container/<name>/attach/ws
...
This function add the possibility to attach containers streams to a
websocket. When a websocket is asked the request is upgraded to this
protocol..
2013-07-06 02:05:02 +02:00
Sam Alba
be49f0a118
Merging from master
2013-07-05 12:27:10 -07:00
Sam Alba
66a9d06d9f
Adding support for nicer URLs to support standalone registry (+ some registry code cleaning)
2013-07-05 12:20:58 -07:00
Caleb Spare
1277dca335
Style fixes for fmt + err usage.
...
fmt.Printf and friends will automatically format using the error
interface (.Error()) preferentially; no need to do err.Error().
2013-07-04 14:33:17 -07:00
Victor Vieux
d1d66b9c5f
Merge pull request #1078 from kstaken/fix_json_error
...
* Remote API: Small fix in /start if empty host config
2013-07-01 16:36:58 -07:00
Victor Vieux
11e28842ac
change to top
2013-07-01 15:19:42 +00:00
Kimbro Staken
d8d33e8b8b
Adding check for content-type header
2013-06-30 10:46:09 -07:00
Johan Euphrosine
54da339b2c
api,server: slice are already refs, no need to return ptr
2013-06-28 12:41:09 -07:00
Victor Vieux
2e79719622
add /proc to list running processes inside a container
2013-06-28 15:51:58 +00:00
Gabriel Monroy
4fdf11b2e6
+ Runtime: mount volumes from a host directory with 'docker run -b'
2013-06-26 15:07:31 -07:00
Guillaume J. Charmes
5190f7f33a
Implement regression test for stdin attach
2013-06-24 18:36:04 -07:00
Victor Vieux
4d1692726b
merge master and add doc
2013-06-22 01:08:20 +02:00
Victor Vieux
1581ed52ba
consistent codebase fix
2013-06-21 22:55:33 +00:00
Guillaume J. Charmes
de1a5a75cc
Merge pull request #848 from dotcloud/builder_server-3
...
Improve Docker build
2013-06-21 14:55:08 -07:00
Victor Vieux
8f2a80804c
Merge branch 'master' into fix-auth
2013-06-21 09:18:03 +00:00
Victor Vieux
5b3ad0023b
inverse if
2013-06-21 09:06:09 +00:00
Solomon Hykes
d9bce2defd
- Builder: return an error when the build fails
2013-06-20 22:15:19 -07:00
Solomon Hykes
352991bdf4
Merge branch 'simpler-build-upload' ( #900 ) into builder_server-3 ( #848 )
2013-06-20 22:02:36 -07:00
Solomon Hykes
86e83186b5
Merge branch 'master' into simpler-build-upload
...
Conflicts:
commands.go
2013-06-20 20:25:59 -07:00
Guillaume J. Charmes
b419699ab8
Use hijack for logs instead of stream
2013-06-20 18:18:36 -07:00
Solomon Hykes
e43323221b
Merge branch 'master' into simpler-build-upload
...
Conflicts:
api.go
builder_client.go
commands.go
2013-06-20 14:19:09 -07:00
Victor Vieux
da199846d2
use strconv.ParseBool in getBoolParam
2013-06-20 14:34:58 +00:00
Victor Vieux
bd04d7d475
add ps -s
2013-06-20 14:19:50 +00:00
Solomon Hykes
90dde9beab
*Builder: warn pre-1.3 clients that they need to upgrade. This breaks semver, but our API should still be in 0.X versioning, in which case semver allows breaking changes.
2013-06-19 14:59:28 -07:00
Victor Vieux
3adf9ce04e
add basic support for unix sockets
2013-06-18 18:59:56 +00:00
Solomon Hykes
38554fc2a7
* Builder: simplify the upload of the build context. Simply stream a tarball instead of multipart upload with 4 intermediary buffers. Simpler, less memory usage, less disk usage, and faster.
2013-06-15 09:38:18 -07:00
Guillaume J. Charmes
78f86ea502
Merge branch 'master' into builder_server-3
...
Conflicts:
utils/utils.go
2013-06-14 17:08:39 -07:00
Solomon Hykes
7f118519eb
Remove duplicate 'WARNING'
2013-06-14 14:46:08 -07:00
Solomon Hykes
250e47e2eb
Merge branch 'dns_server_side'
...
+ Configure dns configuration host-wide with 'docker -d -dns'
+ Detect faulty DNS configuration and replace it with a public default
2013-06-14 14:39:05 -07:00
Victor Vieux
90f6bdd6e4
update docs, remove config file on 401
2013-06-14 13:38:51 +00:00
Guillaume J. Charmes
4b4918f2a7
Merge branch 'master' into builder_server-3
...
Conflicts:
buildfile.go
commands.go
docs/sources/api/docker_remote_api.rst
2013-06-13 18:11:22 -07:00
Victor Vieux
c46382ba29
rebase master
2013-06-13 17:58:06 +00:00
Solomon Hykes
5ecfe13be9
Merge branch '610-improve_rmi-feature'
...
* Runtime: improved image removal to garbage-collect unreferenced parents
- Runtime: fixed image removal to cleanly remove tags and repositories
2013-06-12 20:30:07 -07:00
Victor Vieux
f2383151cb
bump to master
2013-06-12 17:39:32 +00:00
Victor Vieux
20bf0e00e8
* Remote Api: Add flag to enable cross domain requests
2013-06-11 10:12:36 +00:00
Michael Crosby
dd53c457d7
Add OPTIONS to route map
...
Move the OPTIONS method registration into the existing
route map. Also add support for empty paths in
the map.
2013-06-10 16:10:40 -09:00
Michael Crosby
ac599d6528
Add explicit status response to OPTIONS handler
...
Write the http.StatusOK header in the OPTIONS
handler and update the unit tests to refer to the
response code using the const from the http package.
2013-06-10 14:44:10 -09:00
Michael Crosby
0a28628c02
Add Cors and OPTIONS route unit tests
...
Move creating the router and populating the
routes to a separate function outside of
ListenAndServe to allow unit tests to make
assertions on the configured routes and handler
funcs.
2013-06-10 13:02:40 -09:00
Victor Vieux
66d9a73362
rebump
2013-06-10 21:05:54 +00:00
Michael Crosby
393e873d25
Add Access-Control-Allow-Methods header
...
Add the Access-Control-Allow-Methods header so that
DELETE operations are allowed.
Also move the write CORS headers method before
docker writes a 404 not found so that the client
receives the correct response and not an invalid
CORS request.
2013-06-09 17:17:35 -09:00
Guillaume J. Charmes
12c9b9b3c9
Implement build from git
2013-06-06 16:41:41 -07:00
Guillaume J. Charmes
a11e61677c
Move the docker build URL form client to server, prepare for GIT support
2013-06-06 16:09:46 -07:00
Guillaume J. Charmes
a3f6054f97
Check for local dns server and output a warning
2013-06-06 11:01:09 -07:00