NETAVARK(1)
π NAME
okay so bestie, welcome to the netavark(1) manual π
β this is all about netavark, and its whole main-character job is to configure a given network namespace for use by a container. No cap.
β¨ SYNOPSIS
netavark [options] command network namespace path
π DESCRIPTION
Netavark configures a network namespace according to a configuration read from STDIN π«Ά. That configuration is JSON formatted β periodt.
π GLOBAL OPTIONS
--file,-fβ instead of reading from STDIN, read the configuration to be applied from the given file. You can also use-f -to flag reading from STDIN. (Yes, the dash is doing the most, and we love that for it π)
π οΈ COMMANDS
β¨ netavark create
The create command takes a partially configured network and completes the remaining configuration. The create command input is described in netavark-create-input.md β URL: https://github.com/containers/netavark/blob/main/docs/netavark-create-input.md. The output of the create command is a network config json.
β¨ netavark setup
The setup command configures the given network namespace with the given configuration, creating any interfaces and firewall rules necessary. It's giving "make it work, bestie" energy π₯.
β¨ netavark teardown
The teardown command is the inverse of the setup command, undoing any configuration applied. Some interfaces may not be deleted (bridge interfaces, for example, will not be removed). Okay so it's not a full clean-slate delete β noted π«‘.
π CONFIGURATION FORMAT
The configuration accepted is the same for both setup and teardown. It is JSON formatted.
The format is https://github.com/containers/podman/blob/cd7b48198c38c5028540e85dc72dd3406f4318f0/libpod/network/types/network.go#L164-L173, but we will also send a Networks array including all the network definitions: https://github.com/containers/podman/blob/cd7b48198c38c5028540e85dc72dd3406f4318f0/libpod/network/types/network.go#L32-L62.
TODO: Transcribe configuration into here in a nice tabular format. (The manual said it, not me β it's on the TODO list, bestie π)
πΈ EXAMPLE
netavark setup /run/user/1000/podman/netns/d11d1f9c499d
netavark -f /run/podman/828b0508ae64.conf teardown
/run/podman/netns/828b0508ae64
π SEE ALSO
podman(1)β go say hi π
π HISTORY
September 2021, Originally compiled by Matt Heon mheon@redhat.com β the mailto: URL is mailto:mheon@redhat.com π«Ά.
and that's the page, bestie π β the footer is just netavark(1)(), with no extra version/date line printed, so we're done. slay β¨
π¦ where this page comes from
- arch rolling: netavark 2.1.0-3 Β· Apache-2.0
- nixpkgs unstable: netavark 2.1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms