Michael Crosby
f2ba04ffa4
Set subreaper true in default linux config
...
This sets the subreaper to true in the default linux config as the
common usecase is to not run containerd as pid 1.
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-07 14:40:26 -04:00
Phil Estes
e9b86af848
Merge pull request #1283 from mlaventure/resurrect-state-dir
...
Resurrect State directory
2017-08-07 10:41:21 -04:00
Phil Estes
fc9410888f
Merge pull request #1294 from crosbymichael/gettingstarted
...
Add getting started guide
2017-08-07 10:36:17 -04:00
Michael Crosby
b20fd92a13
Merge pull request #1298 from miaoyq/add-start-cmd
...
Add `start` subcommand in `ctr`.
2017-08-07 10:21:35 -04:00
Michael Crosby
60f7eee27b
Merge pull request #1275 from mlaventure/travis-ineffassign
...
Enable ineffassign in CI
2017-08-07 09:21:53 -04:00
Michael Crosby
a88397e9f6
Merge pull request #1296 from stevvooe/api-stability-tooling
...
api: generate merged descriptors when building protobufs
2017-08-07 09:19:11 -04:00
Michael Crosby
d6c171ea89
Add getting started guide
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-07 09:17:27 -04:00
Yanqiang Miao
ac72bbab26
Add start
subcommand in ctr
.
...
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
2017-08-05 09:39:11 +08:00
Stephen J Day
a73eb2b2ce
api: generate merged descriptors when building protobufs
...
When we generate protobufs, descriptors outlining all messages and
services are merged into a single file that can be used to identify
unexpected changes to the API that may affect stability. We follow a
similar process to Go's stability guarantees using the protobuf
descriptors to identify changes before they become a problem.
Please see README.md for details.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-08-04 16:50:28 -07:00
Stephen Day
e8625bcdfb
Merge pull request #1295 from mlaventure/separate-client-opts
...
Move client's options to separate files
2017-08-04 14:11:48 -07:00
Michael Crosby
de7afd8aa8
Merge pull request #1293 from dmcgowan/fix-snapshotter-run
...
Fix ctr run bug when snapshotter is provided
2017-08-04 17:07:49 -04:00
Kenfe-Mickael Laventure
56b18c1d1f
Move client's options to separate files
...
This should help in discovering the available options for a given object.
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-04 13:56:16 -07:00
Derek McGowan
5a74a46d42
Fix bug where snapshots got created with wrong snapshotter
...
Snapshotters for run must be created with requested snapshotter.
The order of the options is important to ensure that the snapshotter
is set before the snapshots are created.
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-08-04 13:32:33 -07:00
Derek McGowan
6c1a04f3a4
Merge pull request #1292 from stevvooe/cleanup-protobuf-imports
...
api: cleanup protobuf imports
2017-08-04 13:21:27 -07:00
Kenfe-Mickaël Laventure
bf913547f8
Merge pull request #1290 from Random-Liu/cleanup-io-properly
...
Cleanup FIFOs on error.
2017-08-04 22:02:24 +02:00
Stephen J Day
d986a187d7
api: cleanup protobuf imports
...
There were a few files printing warnings during the build due to
erroneous imports. These imports have now been removed.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-08-04 12:57:43 -07:00
Lantao Liu
73735c4dba
Cleanup FIFOs on error.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-08-04 18:58:10 +00:00
Phil Estes
bb39d1d982
Merge pull request #1289 from mlaventure/add-missing-return
...
Add missing return when failing to write tar header
2017-08-04 13:50:21 -04:00
Kenfe-Mickael Laventure
308ebe7e43
Add missing return when failing to write tar header
...
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-04 10:41:38 -07:00
Derek McGowan
99315f8e02
Merge pull request #1285 from crosbymichael/client-godoc
...
Update godoc for client package
2017-08-04 10:38:53 -07:00
Michael Crosby
bce8fe7bf7
Merge pull request #1288 from mlaventure/dont-touch-grpclog-in-client
...
Do not touch grpc logger from within the packages
2017-08-04 13:31:07 -04:00
Kenfe-Mickaël Laventure
2eaf91177d
Merge pull request #1279 from Random-Liu/cancel-context-on-wait
...
Cancel event subscribe context in Wait.
2017-08-04 19:18:30 +02:00
Kenfe-Mickael Laventure
16f6e0944a
Do not touch grpc logger from within the packages
...
Libraries should not make process wide changes unless requested to.
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-04 10:11:46 -07:00
Lantao Liu
8fae8a5b77
Cancel event subscribe context in Wait.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-08-04 16:46:53 +00:00
Michael Crosby
0a85f6e47d
Update godoc for client package
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-04 11:53:31 -04:00
Phil Estes
7e0063320c
Merge pull request #1282 from AkihiroSuda/dismiss-progressbar-on-debug
...
ctr: dismiss progressbar on --debug
2017-08-04 11:51:17 -04:00
Phil Estes
ff15d18f1f
Merge pull request #1287 from crosbymichael/exitstatus
...
Return exit status from Wait of stopped process
2017-08-04 11:49:51 -04:00
Michael Crosby
0e97bdfea2
Merge pull request #1284 from mlaventure/use-tmp-console-socket
...
Use a temp socket to receive the console from runc
2017-08-04 09:14:22 -04:00
Michael Crosby
fdc5a475a8
Gate task.Wait status check on checkpoints
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-03 18:02:48 -04:00
Kenfe-Mickael Laventure
8700e23a10
Use root dir when storing temporary checkpoint data
...
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-03 14:38:18 -07:00
Michael Crosby
9f13b414b9
Return exit status from Wait of stopped process
...
This changes Wait() from returning an error whenever you call wait on a
stopped process/task to returning the exit status from the process.
This also adds the exit status to the Status() call on a process/task so
that a user can Wait(), check status, then cancel the wait to avoid
races in event handling.
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-03 17:22:33 -04:00
Kenfe-Mickael Laventure
fbe4751b83
Use a temp socket to receive the console from runc
...
This greatly reduce the risk that we will hit the unix socket maximum path
length.
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-03 10:44:10 -07:00
Kenfe-Mickael Laventure
642620cae3
Resurrect State directory
...
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-03 09:15:53 -07:00
Kenfe-Mickael Laventure
829845d268
Fix ineffassign warnings
...
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2017-08-03 08:27:15 -07:00
Akihiro Suda
b45fb98530
ctr: dismiss progressbar on --debug
...
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-08-03 09:35:52 +00:00
Stephen Day
0fa76584f8
Merge pull request #1280 from stevvooe/alpha3
...
release: prepare for 1.0.0-alpha3
2017-08-02 16:12:11 -07:00
Stephen J Day
916254e40a
release: prepare for 1.0.0-alpha3
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-08-02 15:05:42 -07:00
Michael Crosby
c8b4e4dbe8
Merge pull request #1277 from crosbymichael/tty-block
...
Shutdown console after process exits
2017-08-02 17:36:56 -04:00
Kenfe-Mickaël Laventure
ee2dea2bb2
Merge pull request #1278 from stevvooe/update-oci-spec
...
vendor: update OCI image-spec dependency
2017-08-02 23:28:41 +02:00
Michael Crosby
bf4838eb71
Shutdown console after process exits
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 17:09:50 -04:00
Stephen J Day
610e1a250d
vendor: update OCI image-spec dependency
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-08-02 14:08:13 -07:00
Kenfe-Mickaël Laventure
8b0a040004
Merge pull request #1268 from crosbymichael/exec-state
...
Add exec process states
2017-08-02 19:59:01 +02:00
Michael Crosby
f945cdc704
Update windows locking code
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
d18af8699c
Update for epoll console handling
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
e827adaf11
Update windows with exec create/start actions
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
83b27db923
Check status for stopped processes before wait
...
Fixes #1054
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
cd00216fd7
Rename TaskStatus to Status
...
This can be renamed because both Tasks and Processes share the same
status consts
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
504033e373
Add Get of task and process state
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
2974e485f3
Add no-criu flag for running tests
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00
Michael Crosby
9f08965699
Change Exited/Status to SetExited/ExitStatus
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-08-02 13:50:08 -04:00