Skip to content

Instantly share code, notes, and snippets.

@rtgnx
Last active September 27, 2016 15:34
Show Gist options
  • Save rtgnx/b8df8922b2d81b954d307d9330557300 to your computer and use it in GitHub Desktop.
Save rtgnx/b8df8922b2d81b954d307d9330557300 to your computer and use it in GitHub Desktop.
[JSON] systemd container description file
{
"name": "test",
"_comment": "type is either arch or image",
"type": "arch|image",
"_comment": "if arch then specifiy packages beside base ",
"packages": [
"vim",
"git"
],
"_comment": "if image then specifiy either url or path to img",
"image": {
"url": "http://server.xyz/raw/centos.arch.raw.xz",
"file": "/images/centos.arch.raw.xz"
},
"mount": [
{
"src": "src",
"dst": "dst",
"mode": "ro|rw",
"fs": "tmpfs|local"
}
],
"env": {
"key": "value"
},
"_comment": "add multiple network interfaces",
"network": [
{"type": "bride", "iface": "eth0"}
],
"_comment": "run host clone in ephemeral snapshot",
"host-clone": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment