Commit Graph

3757 Commits

Author SHA1 Message Date
Stephen J Day
af5d03e8e9
server: only warn on failed OOM score adjust
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-12-11 14:32:56 -08:00
Daniel Nephin
7d4337e738 Reduce the number of IO constructors
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-12-11 15:07:09 -05:00
Darren Stahl
c71bee7b8a Vendor go-winio
Signed-off-by: Darren Stahl <darst@microsoft.com>
2017-12-11 11:43:42 -08:00
Michael Crosby
ca5f16c33e Move stress worker to new file
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-12-11 10:36:19 -05:00
Michael Crosby
9fcca96771 Add json output to stress test tool
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-12-11 10:33:55 -05:00
Daniel Nephin
a901091f7c Rename cio.Creation to cio.Creator
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-12-08 14:26:10 -05:00
Daniel Nephin
3146019918 Refactor cio.DirectIO
New code duplication
Better re-use from consumers of the cio package

TODO: io_windows.go

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-12-08 14:26:10 -05:00
Daniel Nephin
f79ec5b55f Cleanup cio.FIFOSet interface
Remove duplication with cio.Config
unexport newFIFOSetTempDir() since it includes hardcoded paths
Expose os.RemoveAll() as part of FIFOSet instead of a Dir

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-12-08 14:26:10 -05:00
Phil Estes
6393165b09
Merge pull request #1894 from dnephin/cio-cancel-close
Always IO.Cancel() before IO.Close()
2017-12-08 12:38:51 -05:00
Phil Estes
dc4533d386
Merge pull request #1901 from stevvooe/update-components
RELEASES.md: update components for 1.0 release
2017-12-08 12:37:13 -05:00
Stephen J Day
57bf39194b
RELEASES.md: update components for 1.0 release
This should have been updated at release time, but the GRPC API and the
metrics API is considered stable as of the 1.0 release. This means that
changes that break compatibility with previous versions of containerd
will no longer be accepted.

As part of this update, I am also proposing that we push out Go API
stability to 1.2 so that we can incorporate feedback from the Windows
integration in 1.1.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-12-08 10:31:01 -06:00
Daniel Nephin
65665ab807 Always Cancel before Close
Document this contract.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-12-08 10:30:36 -05:00
Phil Estes
c2cedac2ec
Merge pull request #1899 from YaoZengzeng/fix
add missing dependency in code example
2017-12-08 10:14:17 -05:00
YaoZengzeng
21c260398d add missing dependency in code example
Signed-off-by: YaoZengzeng <yaozengzeng@zju.edu.cn>
2017-12-08 15:53:23 +08:00
Stephen Day
31dabf0c7d
Merge pull request #1892 from estesp/fix-release-link
Fix typo in release link
2017-12-06 15:45:31 -08:00
Phil Estes
ad6e751ede
Merge pull request #1891 from crosbymichael/new-panic
Remove panic from newCommand
2017-12-06 16:53:02 -05:00
Phil Estes
cf741bc51b
Fix typo in release link
Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
2017-12-06 16:51:45 -05:00
Michael Crosby
f78bad2cc7 Remove panic from newCommand
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-12-06 14:02:24 -05:00
Michael Crosby
a6e68ca4d8
Merge pull request #1888 from thaJeztah/update-grpc
Bump gRPC to v1.7.4
2017-12-06 13:33:07 -05:00
Sebastiaan van Stijn
ce3e32680d
Bump gRPC to v1.7.4
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-12-06 09:22:47 -08:00
Michael Crosby
1eea02c23b
Merge pull request #1886 from stevvooe/remove-hints
remotes: remove unused hints
2017-12-06 10:46:18 -05:00
Kenfe-Mickaël Laventure
c98a067619
Merge pull request #1890 from thaJeztah/bump-runtime-spec-1.0.1
Bump runtime spec 1.0.1
2017-12-06 07:40:57 -08:00
Michael Crosby
83bbb9a11a
Merge pull request #1885 from stevvooe/lockdown-1.0-api
api: lock down 1.0 API descriptors
2017-12-06 10:34:40 -05:00
Sebastiaan van Stijn
8b1fd0875a Bump runtime-spec and image-spec to 1.0.1
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-12-05 23:12:36 -08:00
Sebastiaan van Stijn
0eec9c078a
Fix missing libcontainer syscall file
I noticed this file showed up when revendoring dependencies
with vndr.

Also removed `github.com/Microsoft/opengcs` from vendor.conf
as it was not used;

    2017/12/05 22:41:58 WARNING: package github.com/Microsoft/opengcs is unused, consider removing it from vendor.conf

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-12-05 22:52:50 -08:00
Stephen J Day
ebf80ab943
remotes: remove unused hints
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-12-05 14:32:10 -08:00
Stephen J Day
c5fe021d5e
api: lock down 1.0 API descriptors
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-12-05 13:17:08 -08:00
Stephen Day
89623f28b8
Merge pull request #1879 from stevvooe/one-point-oh
release: prepare 1.0.0
2017-12-04 21:15:20 -08:00
Stephen J Day
4d5c2860d2
release: prepare 1.0.0
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-12-04 21:14:02 -08:00
Derek McGowan
40c67fdf78
Merge pull request #1880 from AkihiroSuda/refactor-importer
importer: refactor and fix GC
2017-12-04 20:56:26 -08:00
Stephen Day
7e1bc9cb25
Merge pull request #1874 from stevvooe/regexp-quoting-syntax
filters: supporting alternative characters for quote
2017-12-04 20:38:33 -08:00
Stephen Day
2ff2a70005
Merge pull request #1878 from jessvalarezo/docs-updates
docs: update BUILDING and README
2017-12-04 20:26:51 -08:00
Stephen J Day
4dfcf60bec
filters: supporting alternative characters for quote
The regexp syntax can have some nasty characters to handle quoting
correctly, in practice. In certain scenarios a double quote works well,
but it can affect readability for certain regexps. This introduces a
quoting mode that treats `/` and `|` as a double quote to make the
quoting in regular expressions more familiar and readable.

This change is introduced in a backwards compatible manner, so existing
regexp quoting is not affected.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-12-04 20:06:19 -08:00
Jess Valarezo
b284da3175 docs: update BUILDING and README
Signed-off-by: Jess Valarezo <valarezo.jessica@gmail.com>
2017-12-04 20:02:18 -08:00
Akihiro Suda
63401970c7 importer: refactor
- Use lease API (previoisly, GC was not supported)
- Refactored interfaces for ease of future Docker v1 importer support

For usage, please refer to `ctr images import --help`.

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-12-05 12:48:32 +09:00
Michael Crosby
a9caf9bf4e
Merge pull request #1877 from yanxuean/add-unmount-fail-error
output unmount error when unmount fail in diff.Apply
2017-12-04 22:45:46 -05:00
Michael Crosby
6a1ef90a6e
Merge pull request #1876 from dmcgowan/fs-include-parent-directories
Emit unmodified change events for directories
2017-12-04 22:44:58 -05:00
Derek McGowan
ba10e497b9
Emit unmodified change events for directories
When a file changes, emit events for the seen parent
directories to ensure that those parents are included
in change streams such as archives. The parents are
needed accurately recreate diff representation apart
from a parent (such as overlay and aufs graph drivers
in Docker).

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-12-04 18:37:00 -08:00
yason
147d4987cd output error when unmount fail in diff.Apply
Signed-off-by: yason <yan.xuean@zte.com.cn>
2017-12-05 10:36:10 +08:00
Akihiro Suda
b77fa49d20
Merge pull request #1875 from jessvalarezo/docs-revamp
add table of contents to readme
2017-12-05 11:14:08 +09:00
Derek McGowan
2214a07cb4
Merge pull request #1872 from estesp/manifest-list-push
Add more descriptive error on manifest list push
2017-12-04 18:07:26 -08:00
Jess Valarezo
26012df467 add table of contents to readme
Signed-off-by: Jess Valarezo <valarezo.jessica@gmail.com>
2017-12-04 17:59:07 -08:00
Stephen Day
68d4dfe4ca
Merge pull request #1870 from dnephin/fix-error-messages
Update snapshot storage error message
2017-12-04 17:40:22 -08:00
Stephen Day
9570174ba9
Merge pull request #1871 from dmcgowan/btrfs-usage
Implement btrfs usage
2017-12-04 17:37:30 -08:00
Phil Estes
4a662b2ccd
Merge pull request #1873 from jessvalarezo/docs-readme
docs: add cio import
2017-12-04 19:17:13 -05:00
Jess Valarezo
350e8156bf docs: add cio import
Signed-off-by: Jess Valarezo <valarezo.jessica@gmail.com>
2017-12-04 15:17:59 -08:00
Phil Estes
02661c70a4
Add more descriptive error on manifest list push
Adds a more descriptive error message for pushing indexes/manifest list
references with missing content references to a docker v2 API supporting
container registry. This can be followed up with a more complete review
of how to handle "deep" references for manifest lists on push/pull post
containerd 1.0.

Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
2017-12-04 18:00:19 -05:00
Derek McGowan
3bc4e69ba1
Implement btrfs usage
Implements btrfs usage using a double walking diff and
counting the result. Walking gives the most accurate
count and includes inode usage.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-12-04 14:42:21 -08:00
Daniel Nephin
0e03d778f1 Update snapshot storage error message
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-12-04 17:35:27 -05:00
Michael Crosby
617c63de06
Merge pull request #1864 from yanxuean/withSnapshotBucket
get wrong parents bucket in withSnapshotBucket
2017-12-04 17:25:23 -05:00