License | Versioning | Build |
---|---|---|
NodeJS example projects using Podman for study purpose.
- Podman
3.2.0-rc1
and above.
Define a network for rootless Podman. Create ~/.config/cni/net.d/podman-network-sampleapps.conflist
file:
{
"cniVersion": "0.4.0",
"name": "sampleapps",
"plugins": [
{
"type": "bridge",
"bridge": "cni-podman1",
"isGateway": true,
"ipMasq": true,
"hairpinMode": true,
"ipam": {
"type": "host-local",
"routes": [{ "dst": "0.0.0.0/0" }],
"ranges": [
[
{
"subnet": "10.77.1.0/24",
"gateway": "10.77.1.1"
}
]
]
}
},
{
"type": "portmap",
"capabilities": {
"portMappings": true
}
},
{
"type": "firewall"
},
{
"type": "tuning"
},
{
"type": "dnsname",
"domainName": "sampleapps"
}
]
}