Add docs of changing default netavark networks

Signed-off-by: Tobias Florek <tob@butter.sh>
This commit is contained in:
Tobias Florek
2022-06-03 15:21:38 +02:00
committed by Tobias Florek
parent 96f9d0dc0e
commit dc4a01ec61

View File

@ -93,6 +93,22 @@ When rootless containers are run, network operations
will be executed inside an extra network namespace. To join this namespace, use will be executed inside an extra network namespace. To join this namespace, use
`podman unshare --rootless-netns`. `podman unshare --rootless-netns`.
#### Default Network
The default network `podman` with netavark is memory-only. It does not support dns resolution because of backwards compatibility with Docker. To change settings, export the in-memory network and change the file.
For the default rootful network use
```
podman network inspect podman | jq .[] > /etc/containers/networks/podman.json
```
And for the rootless network use
```
podman network inspect podman | jq .[] > ~/.local/share/containers/storage/networks/podman.json
```
#### Example #### Example
By default, rootful containers use the netavark for its default network if By default, rootful containers use the netavark for its default network if