|
|
b9e171 |
.nh
|
|
|
b9e171 |
.TH netavark(1)
|
|
|
b9e171 |
.SH NAME
|
|
|
b9e171 |
.PP
|
|
|
b9e171 |
netavark - Configure a given network namespace for use by a container
|
|
|
b9e171 |
|
|
|
b9e171 |
.SH SYNOPSIS
|
|
|
b9e171 |
.PP
|
|
|
b9e171 |
\fBnetavark\fP [\fIoptions\fP] \fIcommand\fP \fInetwork namespace path\fP
|
|
|
b9e171 |
|
|
|
b9e171 |
.SH DESCRIPTION
|
|
|
b9e171 |
.PP
|
|
|
b9e171 |
Netavark configures a network namespace according to a configuration read from STDIN. The configuration is JSON formatted.
|
|
|
b9e171 |
|
|
|
b9e171 |
.SH GLOBAL OPTIONS
|
|
|
b9e171 |
.SS \fB--file\fP, \fB-f\fP
|
|
|
b9e171 |
.PP
|
|
|
b9e171 |
Instead of reading from STDIN, read the configuration to be applied from the given file. \fB-f -\fP may also be used to flag reading from STDIN.
|
|
|
b9e171 |
|
|
|
b9e171 |
.SH COMMANDS
|
|
|
b9e171 |
.SS netavark setup
|
|
|
b9e171 |
.PP
|
|
|
b9e171 |
The setup command configures the given network namespace with the given configuration, creating any interfaces and firewall rules necessary.
|
|
|
b9e171 |
|
|
|
b9e171 |
.SS netavark teardown
|
|
|
b9e171 |
.PP
|
|
|
b9e171 |
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).
|
|
|
b9e171 |
|
|
|
b9e171 |
.SS CONFIGURATION FORMAT
|
|
|
b9e171 |
.PP
|
|
|
b9e171 |
The configuration accepted is the same for both setup and teardown. It is JSON formatted.
|
|
|
b9e171 |
|
|
|
b9e171 |
.PP
|
|
|
b9e171 |
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)
|
|
|
b9e171 |
TODO: Transcribe configuration into here in a nice tabular format
|
|
|
b9e171 |
|
|
|
b9e171 |
.SH EXAMPLE
|
|
|
b9e171 |
.PP
|
|
|
b9e171 |
netavark setup /run/user/1000/podman/netns/d11d1f9c499d
|
|
|
b9e171 |
|
|
|
b9e171 |
.PP
|
|
|
b9e171 |
netavark -f /run/podman/828b0508ae64.conf teardown /run/podman/netns/828b0508ae64
|
|
|
b9e171 |
|
|
|
b9e171 |
.SH SEE ALSO
|
|
|
b9e171 |
.PP
|
|
|
b9e171 |
podman(1)
|
|
|
b9e171 |
|
|
|
b9e171 |
.SH HISTORY
|
|
|
b9e171 |
.PP
|
|
|
b9e171 |
September 2021, Originally compiled by Matt Heon mheon@redhat.com
|
|
|
b9e171 |
\[la]mailto:mheon@redhat.com\[ra]
|