diff options
author | Kaushal M | 2018-07-11 20:25:47 +0530 |
---|---|---|
committer | Kaushal M | 2018-07-11 20:26:33 +0530 |
commit | f07b915fef06bc94b730d247b3658e85d3031072 (patch) | |
tree | a04130d8e53841a7c880e2ea45065637301a8281 /kata-runtime.install | |
download | aur-f07b915fef06bc94b730d247b3658e85d3031072.tar.gz |
Initial commit - kata-containers-1.1.0
Diffstat (limited to 'kata-runtime.install')
-rw-r--r-- | kata-runtime.install | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/kata-runtime.install b/kata-runtime.install new file mode 100644 index 000000000000..d37f5ff245cc --- /dev/null +++ b/kata-runtime.install @@ -0,0 +1,36 @@ +post_install() { + cat <<EOF + +To use with kata-runtime with docker, +- add the following config to /etc/docker/daemon.json +""" +{ + "runtimes": { + "kata": { + "path": "/usr/bin/kata-runtime" + } + } +} +""" + and restart the docker daemon + +- run containers with the "--runtime=kata" options to use kata-runtime +""" +$ docker run --runtime=kata --rm busybox date +""" + +- to set kata as the default runtime, add '"default-runtime": "kata"' to /etc/docker/daemon.json and restart the docker daemon +""" +{ + "runtimes": { + "kata": { + "path": "/usr/bin/kata-runtime" + }, + "default-runtime": "kata" + } +} +""" + +EOF + +} |