summarylogtreecommitdiffstats
path: root/kata-runtime.install
diff options
context:
space:
mode:
authorKaushal M2018-07-11 20:25:47 +0530
committerKaushal M2018-07-11 20:26:33 +0530
commitf07b915fef06bc94b730d247b3658e85d3031072 (patch)
treea04130d8e53841a7c880e2ea45065637301a8281 /kata-runtime.install
downloadaur-f07b915fef06bc94b730d247b3658e85d3031072.tar.gz
Initial commit - kata-containers-1.1.0
Diffstat (limited to 'kata-runtime.install')
-rw-r--r--kata-runtime.install36
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
+
+}