Skip to content

Instantly share code, notes, and snippets.

@egernst
Last active February 14, 2018 19:41
Show Gist options
  • Select an option

  • Save egernst/1e116abd0da65b3b090c09c81b70d4c6 to your computer and use it in GitHub Desktop.

Select an option

Save egernst/1e116abd0da65b3b090c09c81b70d4c6 to your computer and use it in GitHub Desktop.
kata-agent work
sudo crictl runs ./sandbox_config.json
sudo crictl create db1409f8ef944cd2a2cb07 container_bad.json sandbox_config.json
sudo crictl sandboxes
sudo crictl ps
{
"metadata": {
"name": "my-busybox-container2"
},
"image": {
"image": "busybox"
},
"command": [
"blablab"
],
"args": [
"docker-entrypoint.sh",
"redis-server"
],
"working_dir": "/data",
"envs": [
{
"key": "PATH",
"value": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
},
{
"key": "TERM",
"value": "xterm"
},
{
"key": "REDIS_VERSION",
"value": "3.2.3"
},
{
"key": "REDIS_DOWNLOAD_URL",
"value": "http://download.redis.io/releases/redis-3.2.3.tar.gz"
},
{
"key": "REDIS_DOWNLOAD_SHA1",
"value": "92d6d93ef2efc91e595c8bf578bf72baff397507"
}
],
"labels": {
"tier": "backend"
},
"annotations": {
"pod": "podsandbox1"
},
"readonly_rootfs": false,
"log_path": "",
"stdin": false,
"stdin_once": false,
"tty": false,
"linux": {
"resources": {
"memory_limit_in_bytes": 209715200,
"cpu_period": 10000,
"cpu_quota": 20000,
"cpu_shares": 512,
"oom_score_adj": 30,
"cpuset_cpus": "0-1",
"cpuset_mems": "0"
},
"security_context": {
"capabilities": {
"add_capabilities": [
"sys_admin"
]
}
}
}
}
This file has been truncated, but you can view the full file.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment