example.container: Add container example configuration
Add an example configuration to showcase different ways to configure container options. Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
parent
db93286e11
commit
d9ef9e395d
1 changed files with 52 additions and 0 deletions
52
example.container
Normal file
52
example.container
Normal file
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
"name": "example-container",
|
||||
"image": {
|
||||
"registry": "registry.opensuse.org",
|
||||
"image": "nginx",
|
||||
"tag": "latest"
|
||||
},
|
||||
"privileged": false,
|
||||
"read_only": false,
|
||||
"replace": false,
|
||||
"pull_policy": "always",
|
||||
"restart": "always",
|
||||
"network": {
|
||||
"mode": "podman1",
|
||||
"options": []
|
||||
},
|
||||
"dns": {
|
||||
"search": "internal.contenso.com",
|
||||
"servers": [ "1.1.1.1", "1.0.0.1" ]
|
||||
},
|
||||
"ports": {
|
||||
"tcp": [ "53", "80", "443" ],
|
||||
"udp": [ "53", "443" ]
|
||||
},
|
||||
"env": {
|
||||
"FOO": "BAR",
|
||||
"MAN_WIDTH": "42"
|
||||
},
|
||||
"secrets": {
|
||||
"MySecret1": {
|
||||
"type": "mount",
|
||||
"options": "uid=0,gid=0,chmod=0777",
|
||||
"target": "/var/run/secrets/MySecret1"
|
||||
},
|
||||
"MySecret2": {
|
||||
"type": "mount",
|
||||
"target": "/var/run/secrets/MySecret2"
|
||||
},
|
||||
"MySecret3": {
|
||||
"type": "env",
|
||||
"target": "MY_SECRET_3"
|
||||
}
|
||||
},
|
||||
"volumes": {
|
||||
"etc": "/etc",
|
||||
"var": "/var"
|
||||
},
|
||||
"capabilities": {
|
||||
"add": [ "NET_RAW" ],
|
||||
"drop": [ "CAP_SYS_ADMIN" ]
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue