Commit Graph

11956 Commits

Author SHA1 Message Date
Akihiro Suda
b26e2e781c ctr run: add --cwd
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-10-04 04:40:08 +00:00
Lantao Liu
cfa7acf1f6 Merge pull request #323 from Random-Liu/add-node-e2e-test-timeout
Add node e2e test timeout.
2017-10-03 21:40:00 -07:00
Yanqiang Miao
9f656cdda4 Support unconfined apparmor
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
2017-10-04 09:50:27 +08:00
Lantao Liu
2f5f8be99d Add node e2e test timeout.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-10-04 01:12:43 +00:00
Stephen Day
f6d88927d5 Merge pull request #1583 from stevvooe/image-storage-validation
metadata: validation and testing of image store
2017-10-03 16:48:38 -07:00
Stephen J Day
698b6d15f7
metadata: validation and testing of image store
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-10-03 16:34:00 -07:00
Stephen J Day
c555df54c0
images: support checking status of image content
The `Check` function returns information about an image's content components
over a content provider. From this information, one can tell which content is
required, present or missing to run an image.

The utility can be demonstrated with the `check` command:

```console
$ ctr images check
REF                               TYPE                                                      DIGEST                                                                  STATUS            SIZE
docker.io/library/alpine:latest   application/vnd.docker.distribution.manifest.list.v2+json sha256:f006ecbb824d87947d0b51ab8488634bf69fe4094959d935c0c103f4820a417d incomplete (1/2)  1.5 KiB/1.9 MiB
docker.io/library/postgres:latest application/vnd.docker.distribution.manifest.v2+json      sha256:2f8080b9910a8b4f38ff5a55a82e77cb43d88bdbb16d723c71d18493590832e9 complete (13/13)  99.3 MiB/99.3 MiB
docker.io/library/redis:alpine    application/vnd.docker.distribution.manifest.v2+json      sha256:e633cded055a94202e4ccccb8125b7f383cd6ee56527ab890db643383a2647dd incomplete (6/7)  8.1 MiB/10.0 MiB
docker.io/library/ubuntu:latest   application/vnd.docker.distribution.manifest.list.v2+json sha256:60f835698ea19e8d9d3a59e68fb96fb35bc43e745941cb2ea9eaf4ba3029ed8a unavailable (0/?) 0.0 B/?
docker.io/trollin/busybox:latest  application/vnd.docker.distribution.manifest.list.v2+json sha256:54a6424f7a2d5f4f27b3d69e5f9f2bc25fe9087f0449d3cb4215db349f77feae complete (2/2)    699.9 KiB/699.9 KiB
```

The above shows us that we have two incomplete images and one that is
unavailable. The incomplete images are those that we know the complete
size of all content but some are missing. "Unavailable" means that the
check could not get enough information about the image to get its full
size.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-10-03 15:19:22 -07:00
Lantao Liu
475471f8a0 Merge pull request #321 from mhamrah/patch-1
Quick typo fix for README.md
2017-10-03 15:05:37 -07:00
Kenfe-Mickaël Laventure
7c9b0eab9f Merge pull request #1590 from crosbymichael/container-update
Add container update method
2017-10-03 14:33:58 -07:00
Michael Crosby
9e85035f15 Add container update method
This adds an update method to the container interface for the client
package.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-10-03 16:59:52 -04:00
Michael Hamrah
05f35f087b Fix README.md typo
Signed-off-by: Michael Hamrah <m@hamrah.com>
2017-10-03 16:50:19 -04:00
Lantao Liu
aec175c9a1 Merge pull request #319 from Random-Liu/fix-update-container-resources
Fix update container resources
2017-10-03 13:17:35 -07:00
Phil Estes
1c7a042e04 Merge pull request #1566 from stevvooe/split-children
images: provide separated children function for images
2017-10-03 13:46:46 -04:00
Phil Estes
6b9aafdab1 Merge pull request #1587 from Ace-Tang/remove_blank_line
Remove a blank line
2017-10-03 11:14:47 -04:00
Yanqiang Miao
a7471d79ab Update kubernetes version to the PR#52395
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
2017-10-03 21:46:56 +08:00
Ace-Tang
2231de3760 Remove a blank line
Signed-off-by: Ace-Tang <aceapril@126.com>
2017-10-03 20:58:51 +08:00
Lantao Liu
dfe615acc0 Merge pull request #318 from nikhita/fix-design-proposal-link
Fix link after design proposals move
2017-10-03 00:21:27 -07:00
Nikhita Raghunath
bf2f942a11 Fix link to design proposal
Signed-off-by: Nikhita Raghunath <nikitaraghunath@gmail.com>
2017-10-03 12:21:53 +05:30
Lantao Liu
ecd1638293 Add integration test
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-10-03 06:03:54 +00:00
Lantao Liu
a81a47bf9b Fix update container resources
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-10-03 06:03:39 +00:00
Michael Crosby
8ded4fe3a7 Merge pull request #1581 from crosbymichael/lint-2
Comment more packages to pass go lint
2017-10-02 14:46:28 -04:00
Michael Crosby
451421b615 Comment more packages to pass go lint
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-10-02 13:54:56 -04:00
Michael Crosby
33e974ce99 Merge pull request #1577 from crosbymichael/lint-1
Update files based on go lint
2017-10-02 10:57:19 -04:00
Kenfe-Mickaël Laventure
2416559fa6 Merge pull request #1580 from tklauser/unix-mkdev-major-minor
Use Mkdev, Major and Minor functions from golang.org/x/sys/unix
2017-10-02 07:56:57 -07:00
Michael Crosby
f43b7acfd2 Update files based on go lint
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-10-02 10:15:28 -04:00
Daniel, Dao Quang Minh
579093f13f Merge pull request #1579 from tklauser/vendor-ansiterm
Remove stray entry for Azure/go-ansiterm from vendor.conf
2017-10-02 14:53:34 +01:00
Tobias Klauser
f01b139161 archive: use Mkdev, Major and Minor functions from golang.org/x/sys/unix
Now that golang.org/x/sys/unix provides the Mkdev, Major and Minor
functions for every OS, use them instead of the locally defined version
which uses the Linux specific device major/minor encoding.

This also means that the device number should now be properly encoded on
e.g. Darwin, FreeBSD or Solaris.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2017-10-02 15:13:03 +02:00
Tobias Klauser
727fd599fb ctr: remove SIGUNUSED from signal map
The SIGUNUSED constant was removed from golang.org/x/sys/unix in
https://go-review.googlesource.com/61771 as it is also removed from the
respective glibc headers.

This means the command

  ctr tasks kill SIGUNUSED ...

will no longer work. However, the same effect can be achieved with

  ctr tasks kill SIGSYS ...

as SIGSYS has the same value as SIGUNUSED used to have.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2017-10-02 15:10:31 +02:00
Tobias Klauser
e789135aa3 vendor: update golang.org/x/sys
Update golang.org/x/sys to 314a259e304ff91bd6985da2a7149bbf91237993

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2017-10-02 14:51:12 +02:00
Tobias Klauser
acc246e5d9 Remove stray entry for Azure/go-ansiterm from vendor.conf
go-ansiterm is no longer used since commit cf2c4609bd ("Bump runc with
console change for ONLCR") but for some reason there was a second entry
in vendor.conf. Remove it as well.

This fixes the following warning when running vndr:

  WARNING: package github.com/Azure/go-ansiterm is unused, consider removing it from vendor.conf

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2017-10-02 14:47:45 +02:00
Stephen J Day
ce6859fd25
images: provide separated children function for images
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-09-29 13:47:54 -07:00
Kenfe-Mickaël Laventure
16bf82360e Merge pull request #1570 from AkihiroSuda/oci-runtime-readonly
readonly: pass RW rootfs to runtime, and let the runtime remount it as RO
2017-09-29 13:36:26 -07:00
Lantao Liu
29d9a788e6 Merge pull request #313 from Random-Liu/update-ansible
Update ansible playbook release version.
2017-09-29 09:56:59 -07:00
Lantao Liu
60ea331f9f Update ansible playbook release version.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-29 06:21:28 +00:00
Akihiro Suda
27023c7fa2 readonly: pass RW rootfs to runtime, and let the runtime remount it as RO
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-09-29 06:20:26 +00:00
Lantao Liu
125152b944 Merge pull request #312 from Random-Liu/update-cri-tools-version
Update critools version to v0.2.
2017-09-28 21:03:40 -07:00
Lantao Liu
ba757745d2 Update critools version to v0.2.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-29 03:23:36 +00:00
Lantao Liu
5acb73841c Merge pull request #311 from Random-Liu/update-kubernetes
Update Kubernetes to v1.8.0
2017-09-28 20:22:08 -07:00
Lantao Liu
651b0185e1 Update Kubernetes to v1.8.0
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-29 02:51:46 +00:00
Lantao Liu
4d0a2338c4 Merge pull request #309 from Random-Liu/update-readme
Update README.md
2017-09-28 18:18:51 -07:00
Lantao Liu
fd032461fb Update README.md
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-29 00:10:18 +00:00
Lantao Liu
98c5bd80ca Merge pull request #306 from Random-Liu/update-kubernetes
Update kubernetes to v1.8.0-rc.1
2017-09-28 16:52:47 -07:00
Lantao Liu
4127e0e295 Merge pull request #307 from Random-Liu/rename-getting-started
Rename getting-started.md to README.md.
2017-09-28 16:17:21 -07:00
Lantao Liu
8c7ddee69d Rename getting-started.md to README.md.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-28 23:11:00 +00:00
Lantao Liu
6063b580a4 Merge pull request #308 from mikebrow/quick-readme-update
minor update to the readme
2017-09-28 15:29:12 -07:00
Mike Brown
39ec8fa9ae minor update to the readme
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2017-09-28 17:19:40 -05:00
Lantao Liu
126c0a0e80 Update kubernetes to v1.8.0-rc.1
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-28 21:28:27 +00:00
Lantao Liu
f586073b1c Merge pull request #294 from Random-Liu/cleanup-flags
Cleanup flag default value
2017-09-28 13:13:14 -07:00
Lantao Liu
a7b78d7622 Merge pull request #297 from ijc/use-stat-for-device-uuid-comparison
Use stat_t.st_rdev to compare block devices
2017-09-28 11:30:34 -07:00
Lantao Liu
dc947114bb Cleanup flag default value
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-28 18:24:40 +00:00