1
0
Fork 0
containerctl/example.container
Enno Tensing d9ef9e395d
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>
2025-07-22 12:57:26 +02:00

52 lines
923 B
Text

{
"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" ]
}
}