Skip to content

Commit 81d03fd

Browse files
committed
JSON objects are easier to parse/manipulate
Don't use strings when you can use dictionaries/objects. JSON objects are trivial to parse and manipulate, unlike strings. String parsing is the opencontainers#1 cause of security bugs, so if it can be trivially avoided, then why not ;)
1 parent d581213 commit 81d03fd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

runtime-config.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ Additional filesystems can be declared as "mounts", specified in the *mounts* ar
1515
"type": "proc",
1616
"source": "proc",
1717
"destination": "/proc",
18-
"options": ""
18+
"options": {}
1919
},
2020
{
2121
"type": "tmpfs",
2222
"source": "tmpfs",
2323
"destination": "/dev",
24-
"options": "nosuid,strictatime,mode=755,size=65536k"
24+
"options": {"nosuid":true,"strictatime":true,"mode":"755","size":"65536k"}
2525
},
2626
{
2727
"type": "devpts",
2828
"source": "devpts",
2929
"destination": "/dev/pts",
30-
"options": "nosuid,noexec,newinstance,ptmxmode=0666,mode=0620,gid=5"
30+
"options": {"nosuid":true,"noexec":true,"newinstance":true,"ptmxmode":"0666","mode":"0620","gid":5}
3131
},
3232
{
3333
"type": "bind",
3434
"source": "/volumes/testing",
3535
"destination": "/data",
36-
"options": "rbind,rw"
36+
"options": {"rbind":true,"rw":true}
3737
}
3838
]
3939
```

0 commit comments

Comments
 (0)