Shift to development track containerd

Move to the development track of `containerd` not the legacy 0.2
branch. The commands have changed a bit.

This does increase the image size as we are bundling the Docker
copy and our copy, and the new one is larger as it is growing features.
Hopefully Docker will shrink eventually. Also we may replace `ctr`
with a library.

Fix #1029

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-01-24 15:39:44 +00:00
parent d4416e1b93
commit 89e98eefa0
14 changed files with 132 additions and 17 deletions

View File

@@ -19,12 +19,9 @@ docker rm ${CONTAINER}
mkdir -p /var/log/nginx /var/cache/nginx
containerd-ctr containers start ${NAME} .
containerd-ctr containers
ctr run --bundle . ${NAME}
ctr list
```
For debugging it helps to run `containerd-ctr containers start --attach ${NAME} .` It may
well turn out that you need to create directories that are empty volumes in docker.
For production, you will want to create the `config.json` offline and bundle it in with your
intii script, but you can create the rootfs online.
init script, but you can create the rootfs online.