Commit Graph

35 Commits

Author SHA1 Message Date
Lantao Liu
a77ba6b84b Cleanup image load code.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-11-02 23:09:43 +00:00
Mike Brown
df6f4a3655 adds help for load command (#383)
* adds help for load command

Signed-off-by: Mike Brown <brownwm@us.ibm.com>

* vendor restrom/dedent

Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2017-11-02 15:38:24 -07:00
Zhenhao Zhang
0c1839047c add pprof endpoint (#370)
Add pprof endpoint

Signed-off-by: zhangzhenhao <zhangzhenhao@outlook.com>
2017-11-02 11:41:37 -07:00
Lantao Liu
439ee0a973 Add stack dump.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-10-27 22:45:38 +00:00
Lantao Liu
25fdf72692 Add image load.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-10-27 21:51:04 +00:00
Lantao Liu
16f1c54bd6 Add version subcommand.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-10-25 00:19:37 +00:00
Lantao Liu
eb4d5f3fc7 Add default-config command.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-10-25 00:19:37 +00:00
Lantao Liu
7977970e04 Use cobra for cli.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-10-25 00:19:37 +00:00
Lantao Liu
517f697f62 Better format several errors
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-28 01:15:06 +00:00
Lantao Liu
dd967cde8c Improve apparmor and selinux support.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-22 20:46:31 +00:00
Ian Campbell
8c6ba35038 Implement volume copy up.
This pulls in and uses github.com/docker/docker/pkg/chrootarchive for the
actual copy up which is some battle hardened code to unpack avoiding things
like symlink traversal security issues.

However it does pull in a pretty huge pile of vendoring, including
github.com/docker/docker/pkg/reexec which we must then call at startup. It's
not immediately clear that this tradeoff is the correct one.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-09-20 09:52:27 +01:00
Lantao Liu
a8d4940285 Merge pull request #227 from yanxuean/tomldefault
Add a default config file
2017-09-17 22:38:40 -07:00
yanxuean
c24a5db242 Add a default config file
fix #226

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
2017-09-18 08:57:10 +08:00
Lantao Liu
71b0d0a043 Use config in service.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-17 06:46:40 +00:00
yason
e1a8968f5a add config file for cri-containerd
fix #182

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
2017-09-07 15:07:47 +08:00
yanxuean
269aeb6734 add config file -- add despendency
fix #182

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
2017-09-05 16:20:02 +08:00
yanxuean
ecf270d0d7 add log
Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
2017-09-05 15:52:59 +08:00
yanxuean
99a87f1a29 Add toml config file for cri-containerd
fix #182

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
2017-09-05 15:49:03 +08:00
Jamie Zhuang
915f5b0aea Make sandbox container image configurable
Signed-off-by: Jamie Zhuang <lanchongyizu@gmail.com>
2017-09-03 02:53:17 -04:00
Lantao Liu
aa3635c75a Merge pull request #183 from Random-Liu/cri-containerd-exit-with-containerd
Cri containerd exits with containerd
2017-09-01 16:39:38 -07:00
Lantao Liu
c3e8c69aff Let cri-containerd exit with containerd
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-09-01 23:14:04 +00:00
Yanqiang Miao
0c3304e006 Support selinux options/label
Support selinux optios/label

Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
2017-08-31 19:20:12 +08:00
Abhinandan Prativadi
e1edeae4c9 Adding option to configure cgroup to start cri-containerd
Signed-off-by: Abhinandan Prativadi <abhi@docker.com>
2017-08-30 14:37:40 -07:00
Lantao Liu
c4d95aa2c4 Fix sandbox container snapshotter.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-08-30 18:33:59 +00:00
Lantao Liu
54286313ce Add container Exec support.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-08-07 22:49:06 +00:00
Mike Brown
97063a0e34 switch to client provided services and address nits
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2017-06-20 19:19:14 -05:00
Mike Brown
20fc0227ae use containerd client library
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2017-06-20 19:18:29 -05:00
Lantao Liu
0179d0fbaf Retry and backoff when lost connection with containerd.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-31 21:33:52 +00:00
Lantao Liu
80384fc24f Start container event monitor.
Signed-off-by: Lantao Liu <lantaol@google.com>
2017-05-31 01:18:22 +00:00
Xianglin Gao
4a4414987f Add unit test
Signed-off-by: Xianglin Gao <xlgao@zju.edu.cn>
2017-05-23 18:30:20 +08:00
Xianglin Gao
c541515674 Add flags and initialize network plugin
Signed-off-by: Xianglin Gao <xlgao@zju.edu.cn>
2017-05-23 12:48:36 +08: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
Christopher M. Luciano
683fd7f0e5
Add containerdVersion flag
Add version flag that only prints the static version for the binary.

This commit does not include build details for containers since
Makefile does not build them.

Closes #8

Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2017-04-24 14:46:16 -04:00
Mike Brown
f9e02affcc adds boilerplate test to verify; cleanup boilerplate on a few files
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2017-04-21 12:44:25 -05:00
Random-Liu
f2925f58ac Add initial code framework 2017-04-14 19:04:26 -07:00