Skip to content

Instantly share code, notes, and snippets.

@insom
Created June 24, 2015 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save insom/f0f50e952b52b7354ec6 to your computer and use it in GitHub Desktop.
Save insom/f0f50e952b52b7354ec6 to your computer and use it in GitHub Desktop.
container.json for a vivid guest
{
"version": "0.1",
"os": "linux",
"arch": "amd64",
"processes": [
{
"tty": false,
"user": "root",
"args": [
"/doit.sh"
],
"env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"TERM=xterm"
],
"cwd": ""
}
],
"root": {
"path": "/vivid",
"readonly": false
},
"cpus": 1.1,
"memory": 1024,
"namespaces": [
{
"type": "process"
},
{
"type": "mount"
},
{
"type": "ipc"
}
],
"capabilities": [
"DAC_OVERRIDE",
"AUDIT_WRITE",
"KILL",
"NET_BIND_SERVICE"
],
"devices": [
"null",
"random",
"full",
"tty",
"zero",
"urandom"
],
"mounts": [
{
"type": "proc",
"source": "proc",
"destination": "/proc",
"options": ""
},
{
"type": "tmpfs",
"source": "tmpfs",
"destination": "/dev",
"options": "nosuid,strictatime,mode=755,size=65536k"
},
{
"type": "devpts",
"source": "devpts",
"destination": "/dev/pts",
"options": "nosuid,noexec,newinstance,ptmxmode=0666,mode=0620,gid=5"
},
{
"type": "tmpfs",
"source": "shm",
"destination": "/dev/shm",
"options": "nosuid,noexec,nodev,mode=1777,size=65536k"
},
{
"type": "bind",
"source": "/www",
"destination": "/var/www/html",
"options": "bind"
},
{
"type": "sysfs",
"source": "sysfs",
"destination": "/sys",
"options": "nosuid,noexec,nodev"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment