Commit Graph

9017 Commits

Author SHA1 Message Date
Stephen Day
26a62223f3 Merge pull request #858 from stevvooe/remove-fsutils-pkg
fs: remove fsutils package
2017-05-15 16:55:20 -07:00
Derek McGowan
098ff94b24
Add snapshot and diff service
Remove rootfs service in place of snapshot service. Adds
diff service for extracting and creating diffs. Diff
creation is not yet implemented. This service allows
pulling or creating images without needing root access to
mount. Additionally in the future this will allow containerd
to ensure extractions happen safely in a chroot if needed.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-05-15 16:50:16 -07:00
Stephen J Day
320dd70935
fs: remove fsutils package
No need to have a util package under a package... er, package.

We should move most of this functionality to continuity.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-05-15 16:33:58 -07:00
Michael Crosby
a622f5e726 Merge pull request #838 from mlaventure/allow-specifying-shim
Allow specifying shim
2017-05-15 15:42:34 -07:00
Kenfe-Mickael Laventure
f95ad5a280 Don't print the transport closing error for shim events
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-05-15 15:27:40 -07:00
Kenfe-Mickael Laventure
0457b13043 Allow the shim binary to be specified
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-05-15 15:27:40 -07:00
Kenfe-Mickael Laventure
ac5563a809 ctr: honor rootfs argument value when generating spec
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-05-15 15:27:26 -07:00
Kenfe-Mickaël Laventure
615f748e77 Merge pull request #857 from crosbymichael/host
Add --net-host for testing host networking
2017-05-15 15:03:07 -07:00
Michael Crosby
ac98ef7439 Add --net-host for testing host networking
Add `--net-host` to `ctr run` to test containers running in host
networking.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-05-15 13:41:57 -07:00
Akihiro Suda
7a62734d82 linux: error out if no rootfs specified
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-05-14 14:03:26 +00:00
Phil Estes
7b2bf52f62 Merge pull request #837 from mlaventure/fix-reaper-monitor
Make reaper.Monitor returns an error when exit code is not 0
2017-05-12 16:34:25 -05:00
Lantao Liu
c484046261 Merge pull request #34 from Random-Liu/add-all-docker-image-reference
Use docker/distribution library used by docker 17.05.x to support all docker image reference.
2017-05-12 14:15:11 -07:00
Random-Liu
ca2167f17e Use docker/distribution library to resolve image reference.
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-12 13:57:05 -07:00
Lantao Liu
8fa87a1754 Merge pull request #19 from Random-Liu/add-sandbox-implementation
Add sandbox implementation
2017-05-12 13:55:00 -07:00
Random-Liu
1395b07183 Update godeps.
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-12 13:14:46 -07:00
Random-Liu
e4e9f30c5d Add unit test.
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-12 13:14:25 -07:00
Random-Liu
bf28c7fc75 Add initial sandbox management implementation
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-12 13:14:11 -07:00
Michael Crosby
e0e06de707 Merge pull request #843 from estesp/make-without-btrfs
Add buildtag capability to Makefile
2017-05-12 12:56:12 -07:00
Mike Brown
507eff04b3 Merge pull request #33 from Random-Liu/fix-godep
Fix godeps.
2017-05-12 10:02:29 -05:00
Phil Estes
bd432461d3
Shorten no-btrfs build tag name
Remove the `containerd_` portion of the build tag name as it is
unnecessary.

Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
2017-05-12 09:53:57 -05:00
Phil Estes
385f56b678
Add buildtag capability to Makefile
Add the ability to set buildtags and make note in README.md about the
btrfs build tag to turn off building the btrfs snapshot support.

Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
2017-05-12 09:53:57 -05:00
Random-Liu
8112c03f15 Fix godeps.
Signed-off-by: Random-Liu <lantaol@google.com>
2017-05-11 18:56:36 -07:00
Derek McGowan
53296a2fcb Merge pull request #848 from dqminh/fix-typo
remove unused import
2017-05-11 17:56:33 -07:00
Lantao Liu
cdfdc8d33b Merge pull request #21 from mikebrow/image-management
Initial implementation for image management
2017-05-11 17:44:42 -07:00
Mike Brown
100870abb2 godeps update
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2017-05-11 19:33:57 -05:00
Mike Brown
e5199c0cda initial implementation for image management
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2017-05-11 19:32:44 -05:00
Daniel Dao
4b2ce72aaf
remove unused import
With this `make vet` should pass

Signed-off-by: Daniel Dao <dqminh89@gmail.com>
2017-05-11 19:20:00 -05:00
Daniel, Dao Quang Minh
a9be12a52f Merge pull request #847 from dmcgowan/overlay-commit-bug
overlay: call rollback on commit error
2017-05-11 19:17:51 -05:00
Daniel, Dao Quang Minh
6df793797e Merge pull request #846 from crosbymichael/linux-container
Move container and runtime to plugin pkg
2017-05-11 19:07:58 -05:00
Stephen Day
e4945164b0 Merge pull request #776 from AkihiroSuda/introspection
new service: version (WAS: introspection)
2017-05-11 16:49:16 -07:00
Michael Crosby
5a2ad6393f Update windows for plugin interfaces
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-05-11 16:24:34 -07:00
Derek McGowan
7027e8862a
overlay: call rollback on commit error
Rollback was not being called when the function was called with
a key which does not exist. This failure to call rollback kept
the database open and caused all new requests to block.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-05-11 15:55:47 -07:00
Michael Crosby
a11de50127 Remove LinuxContainer interface
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-05-11 15:26:26 -07:00
Michael Crosby
466e14aa71 Move errors to plugin pkg
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-05-11 15:25:26 -07:00
Michael Crosby
01b9f5ec67 Move Container and runtime to plugin pkg
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-05-11 15:24:12 -07:00
Derek McGowan
fa4e114979 Merge pull request #844 from crosbymichael/revert-darwin
Revert "Only build shim on Linux"
2017-05-11 11:07:29 -07:00
Derek McGowan
47dca20bc7 Merge pull request #841 from justincormack/continuity-up
Further fixes for FreeBSD
2017-05-11 10:58:38 -07:00
Michael Crosby
cc62edb4d6 Revert "Only build shim on Linux"
This reverts commit 296ad66d2d.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-05-11 10:56:49 -07:00
Justin Cormack
699f846813 Further fixes for FreeBSD
This fixes a lot more issues for FreeBSD, including update for continuity vendor.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-05-11 10:45:59 +01:00
Akihiro Suda
2562aca1a3 new service: version
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-05-11 09:07:43 +00:00
Michael Crosby
b53105ed25 Merge pull request #821 from stevvooe/content-unify-provider-ingester
content: unify provider and ingester
2017-05-10 17:21:45 -07:00
Stephen J Day
193abed96e
content: unify provider and ingester
The split between provider and ingester was a long standing division
reflecting the client-side use cases. For the most part, we were
differentiating these for the algorithms that operate them, but it made
instantation and use of the types challenging. On the server-side, this
distinction is generally less important. This change unifies these types
and in the process we get a few benefits.

The first is that we now completely access the content store over GRPC.
This was the initial intent and we have now satisfied this goal
completely. There are a few issues around listing content and getting
status, but we resolve these with simple streaming and regexp filters.
More can probably be done to polish this but the result is clean.

Several other content-oriented methods were polished in the process of
unification. We have now properly seperated out the `Abort` method to
cancel ongoing or stalled ingest processes. We have also replaced the
`Active` method with a single status method.

The transition went extremely smoothly. Once the clients were updated to
use the new methods, every thing worked as expected on the first
compile.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-05-10 17:05:53 -07:00
Stephen Day
31cf34b726 Merge pull request #839 from crosbymichael/update-deps
Update deps after move to containerd org
2017-05-10 17:01:51 -07:00
Michael Crosby
23b2b09d13 Update deps after move to containerd org
This updates containerd to use the latest versions of cgroups, fifo,
console, and go-runc from the containerd org.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-05-10 16:51:48 -07:00
Michael Crosby
79e389e549 Merge pull request #836 from crosbymichael/wait-copygroup
Wait for copy routines to be scheduled
2017-05-10 15:54:09 -07:00
Kenfe-Mickael Laventure
ad59eee377 Make reaper.Monitor returns an error when exit code is not 0
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-05-10 13:18:31 -07:00
Phil Estes
a1173ce712 Merge pull request #815 from AkihiroSuda/dtype
overlay: abort if backing fs lacks support for d_type
2017-05-10 14:24:00 -05:00
Michael Crosby
2f942e137d Wait for copy routines to be scheduled
Fixes #770

Use a wait group to wait for the `io.Copy` go routines to be scheduled
before continuing to start the container.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-05-10 11:50:55 -07:00
Stephen Day
d553fab079 Merge pull request #822 from AkihiroSuda/fix-vet
fix `make vet` failures, and enable `make vet` on CI
2017-05-10 11:42:24 -07:00
Lantao Liu
fe37d7bc96 Merge pull request #31 from Random-Liu/enhance-fake-execution-client
Enhance fake execution client.
2017-05-10 10:46:44 -07:00