1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00
Commit Graph

47845 Commits

Author SHA1 Message Date
Jessica Frazelle
4904f1f31f Remove drone.
Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <princess@docker.com> (github: jfrazelle)
2015-02-02 15:19:20 -08:00
Michael Crosby
ab4f9495ba Print zeros for initial stats collection on stopped container
When calling stats on stopped container's print out zeros for all of the
values to populate the initial table.  This signals to the user that the
operations completed and will not block.

Closes #10504

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-02-02 15:01:13 -08:00
Alexander Morozov
4ee05a4d3e Fix some go vet errors
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-02-02 14:53:20 -08:00
Stephen Day
64cdd3e024 Merge pull request #132 from stevvooe/add-tls-support
Add native TLS support to registry
2015-02-02 14:53:19 -08:00
Stephen Day
dd5e24b6f2 Merge pull request #131 from noxiouz/fix_range_header_parsing
[Client] Fix error in parsing of 'Range' header.
2015-02-02 14:52:57 -08:00
Victor Vieux
c966030832 add missing close in proxy
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-02 22:49:05 +00:00
Stephen J Day
43b36970f5 Prefix non-name path components
To address the possibility of confusing registry name components with
repository paths, path components that abut user provided repository names are
escaped with a prefixed underscore. This works because repository name
components are no allowed to start with underscores. The requirements on
backend driver path names have been relaxed greatly to support this use case.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-02-02 14:47:24 -08:00
Stephen J Day
9f5916b2c4 Add native TLS support to registry
This changeset provides simple tls support for a registry instance. Simply
providing a cert and key file are enough to get a tls registry running. If the
certs are trusted by the client, tls can be used throughout the push and pull
process.

If more complex TLS options are required, it is recommend that a proxy be used.
Contributions will be accepted to add more features, if necessary.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-02-02 14:38:47 -08:00
Evan Hazlett
9f152143de Merge pull request #468 from nathanleclaire/fix_flag_parsing_terminator
Fix usage of flag parsing terminator
2015-02-02 16:46:28 -05:00
Nathan LeClaire
d1fdc87f54 Add structure to generate code coverage representation
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-02-02 13:41:42 -08:00
Stephen Day
6cd2945b5c Merge pull request #125 from jlhawn/better_url_builder
Improve URL Builders
2015-02-02 13:41:01 -08:00
Evan Hazlett
a57917045c Merge pull request #471 from nathanleclaire/unit_test_doc
Document how to run unit tests in container in README
2015-02-02 16:38:51 -05:00
Nathan LeClaire
5054ead4bc Document how to run unit tests in container in README
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-02-02 13:35:44 -08:00
Andrea Luzzardi
4cac8f2682 Merge pull request #348 from vieux/update_requirements
update swarm manage requirements
2015-02-02 13:35:18 -08:00
Anton Tiurin
9c0519c4ed [Client] Fix error in parsing of 'Range' header.
* Result of regexp.FindStringSubmatch must be checked to be not nil.
Otherwise it leads to `index out of range`.
* Range header regexp is compiled only once to speedup (5x) the header parsing.

Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
2015-02-03 00:34:38 +03:00
Evan Hazlett
22b3f37750 Merge pull request #470 from ehazlett/fix-moar-tests
add USER to the dockerfile for tests
2015-02-02 16:19:56 -05:00
Evan Hazlett
1cb746c663 add USER to the dockerfile for tests
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-02 16:19:11 -05:00
Stephen Day
e492579718 Merge pull request #129 from noxiouz/fix_missing_mutex
[InMemory] Add missing mutex.RLock/RUnlock in List
2015-02-02 13:15:25 -08:00
Andrea Luzzardi
a9641bcfe9 Merge pull request #340 from vieux/go_vet
hack code to not error on go vet
2015-02-02 13:15:09 -08:00
Michael Crosby
382f187b1a Merge pull request #10455 from ashahab-altiscale/9875-lxc-symlink
Fixes symlink, container size, and kmsg tests
2015-02-02 13:13:27 -08:00
Michael Crosby
7b80e34273 Merge pull request #10495 from jjyr/patch-1
fix 'the project directory' link
2015-02-02 13:10:57 -08:00
Stephen J Day
0270bec916 Handle empty blob files more appropriately
Several API tests were added to ensure correct acceptance of zero-size and
empty tar files. This led to several changes in the storage backend around the
guarantees of remote file reading, which backs the layer and layer upload type.

In support of these changes, zero-length and empty checks have been added to
the digest package. These provide a sanity check against upstream tarsum
changes. The fileReader has been modified to be more robust when reading and
seeking on zero-length or non-existent files. The file no longer needs to exist
for the reader to be created. Seeks can now move beyond the end of the file,
causing reads to issue an io.EOF. This eliminates errors during certain race
conditions for reading files which should be detected by stat calls. As a part
of this, a few error types were factored out and the read buffer size was
increased to something more reasonable.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-02-02 13:01:49 -08:00
Evan Hazlett
d38216b399 Merge pull request #456 from ehazlett/moar-tests
More tests
2015-02-02 15:55:42 -05:00
Evan Hazlett
dcd2a34f6f fix test for GetUsername
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-02 15:46:26 -05:00
Evan Hazlett
3ddf09447c removed gce integration test; these are being refactored into a separate package for integration testing
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-02 15:46:26 -05:00
Evan Hazlett
cf14bac2fc started tests for ssh; added cover tool
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-02 15:46:26 -05:00
Evan Hazlett
da64d92a74 tests for utils/b2d.go
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-02 15:46:24 -05:00
Evan Hazlett
7ffd3707a2 tests for utils/certs.go
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-02 15:44:35 -05:00
Evan Hazlett
3e69997dcf tests for utils/utils.go
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-02 15:44:35 -05:00
Evan Hazlett
6810f67463 add TestHostConfig; refactor host tests for easier testing
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-02 15:44:35 -05:00
Evan Hazlett
2eb7bb457c added generateDockerConfig test
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-02 15:44:35 -05:00
Evan Hazlett
dcf58cfc2d host tests; refactor util functions to support testing
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-02-02 15:44:35 -05:00
Anton Tiurin
cea15b22e3 [InMemory] Add missing mutex.RLock/RUnlock in List to protect internal map
of dir struct.

Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
2015-02-02 23:37:25 +03:00
Evan Hazlett
ba89454ee6 Merge pull request #469 from nathanleclaire/integration_doc
Make note about `MACHINE_BINARY` environment variable.
2015-02-02 15:35:40 -05:00
Nathan LeClaire
3a09516ecb Make note about MACHINE_BINARY environment variable.
A user in IRC was confused about this.

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-02-02 12:21:57 -08:00
Nathan LeClaire
22eae1296d Fix usage of flag parsing terminator
There is no need to check for "--" manually.  cli will do this for us.

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-02-02 12:10:56 -08:00
Stephen Day
2bacac0606 Merge pull request #127 from BrianBland/goamz-godep
Updates goamz dependency from crowdmob->AdRoll
2015-02-02 12:06:29 -08:00
Michael A. Smith
9f6e7e9aed Distinguish ENV from setting environment inline
It's ambiguous to say that `ENV` is _functionally equivalent to prefixing the command with `<key>=<value>`_. `ENV` sets the environment for all future commands, but `RUN` can take chained commands like `RUN foo=bar bash -c 'echo $foo' && bash -c 'echo $foo $bar'`. Users with a solid understanding of `exec` may grok this without confusion, but less experienced users may need this distinction.

Signed-off-by: Michael A. Smith <msmith3@ebay.com>

Improve Environment Handling Descriptions

- Link `ENV` and `Environment Replacement`
- Improve side-effects of `ENV` text
- Rearrange avoiding side effects text

Signed-off-by: Michael A. Smith <msmith3@ebay.com>
2015-02-02 14:55:25 -05:00
Brian Bland
fb71af75c8 Updates goamz dependency from crowdmob->AdRoll
Also includes goamz PR #331 for s3 v4 auth + IAM role support
2015-02-02 11:03:20 -08:00
Josh Hawn
f801b9a7bd Improve URL Builders
Handles an issue where mux.Route does not set the desired scheme
when building a url and always uses `http`.

Now uses X-Forwarded-Proto when creating a URLBuilder from a request.

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2015-02-02 10:38:14 -08:00
Evan Hazlett
25b45ffc7d Merge pull request #460 from sthulb/tls-create-later
move cert creation to create command
2015-02-02 13:36:05 -05:00
Victor Vieux
aaac7cbb94 update swarm manage requirements
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-02 18:34:24 +00:00
Victor Vieux
34fdc81c2e hack code to not error on go vet
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-02 18:20:41 +00:00
Victor Vieux
bcc9f8b7c6 Merge pull request #343 from mota/fix-token-leak
Force connection close with token discovery
2015-02-02 10:18:31 -08:00
Victor Vieux
1cd422aa26 Merge pull request #345 from aluzzardi/demo-scripts
Move contrib files into script/demo.
2015-02-02 09:56:27 -08:00
Victor Vieux
5699ad5a15 Merge pull request #344 from aluzzardi/dockerfile-gopath-fix
Dockerfile: Prioritize godep's workspace over GOPATH.
2015-02-02 09:56:11 -08:00
Victor Vieux
933a1e82fb Merge pull request #254 from SvenDowideit/add-mkdocs-metadata-and-reflow-to-80-chars
Work on userguide and get the docs ready to be consumed by the docker docs-release
2015-02-02 09:55:42 -08:00
Jeffrey Morgan
b4b171d0ee Merge pull request #169 from kitematic/jmorgan-wip-tests
WIP tests
2015-02-02 12:07:24 -05:00
Jeffrey Morgan
fa14cb0731 Merge pull request #169 from kitematic/jmorgan-wip-tests
WIP tests
2015-02-02 12:07:24 -05:00
Jeffrey Morgan
90ee518905 Removing virtual box installer tool for now 2015-02-02 12:07:08 -05:00