-
-
Save avagin/5cb08eab7d66868ea73a to your computer and use it in GitHub Desktop.
working sample for criu in runc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "pre-draft", | |
"platform": { | |
"os": "linux", | |
"arch": "amd64" | |
}, | |
"process": { | |
"terminal": false, | |
"user": { | |
"uid": 0, | |
"gid": 0, | |
"additionalGids": null | |
}, | |
"args": [ | |
"sh", | |
"-c", | |
"while :; do date; sleep 1; done" | |
], | |
"env": [ | |
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", | |
"TERM=xterm" | |
], | |
"cwd": "" | |
}, | |
"root": { | |
"path": "/busybox", | |
"readonly": false | |
}, | |
"hostname": "shell", | |
"mounts": [ | |
{ | |
"type": "proc", | |
"source": "proc", | |
"destination": "/proc", | |
"options": "" | |
}, | |
{ | |
"type": "tmpfs", | |
"source": "tmpfs", | |
"destination": "/dev", | |
"options": "nosuid,strictatime,mode=755,size=65536k" | |
}, | |
{ | |
"type": "tmpfs", | |
"source": "shm", | |
"destination": "/dev/shm", | |
"options": "nosuid,noexec,nodev,mode=1777,size=65536k" | |
}, | |
{ | |
"type": "mqueue", | |
"source": "mqueue", | |
"destination": "/dev/mqueue", | |
"options": "nosuid,noexec,nodev" | |
}, | |
{ | |
"type": "sysfs", | |
"source": "sysfs", | |
"destination": "/sys", | |
"options": "nosuid,noexec,nodev" | |
} | |
], | |
"linux": { | |
"uidMappings": null, | |
"gidMappings": null, | |
"rlimits": null, | |
"sysctl": null, | |
"resources": { | |
"disableOOMKiller": false, | |
"memory": { | |
"limit": 0, | |
"reservation": 0, | |
"swap": 0, | |
"kernel": 0, | |
"swappiness": 0 | |
}, | |
"cpu": { | |
"shares": 0, | |
"quota": 0, | |
"period": 0, | |
"realtimeRuntime": 0, | |
"realtimePeriod": 0, | |
"cpus": "", | |
"mems": "" | |
}, | |
"blockIO": { | |
"blkioWeight": 0, | |
"blkioWeightDevice": "", | |
"blkioThrottleReadBpsDevice": "", | |
"blkioThrottleWriteBpsDevice": "", | |
"blkioThrottleReadIopsDevice": "", | |
"blkioThrottleWriteIopsDevice": "" | |
}, | |
"hugepageLimits": null, | |
"network": { | |
"classId": "", | |
"priorities": null | |
} | |
}, | |
"namespaces": [ | |
{ | |
"type": "process", | |
"path": "" | |
}, | |
{ | |
"type": "network", | |
"path": "" | |
}, | |
{ | |
"type": "ipc", | |
"path": "" | |
}, | |
{ | |
"type": "uts", | |
"path": "" | |
}, | |
{ | |
"type": "mount", | |
"path": "" | |
} | |
], | |
"capabilities": [ | |
"AUDIT_WRITE", | |
"KILL", | |
"NET_BIND_SERVICE" | |
], | |
"devices": [ | |
"null", | |
"random", | |
"full", | |
"tty", | |
"zero", | |
"urandom" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment