1netavark(1)()                                                    netavark(1)()
2
3
4

NAME

6       netavark - Configure a given network namespace for use by a container
7
8

SYNOPSIS

10       netavark [options] command network namespace path
11
12

DESCRIPTION

14       Netavark  configures  a  network namespace according to a configuration
15       read from STDIN. The configuration is JSON formatted.
16
17

GLOBAL OPTIONS

19   --file, -f
20       Instead of reading from STDIN, read the  configuration  to  be  applied
21       from the given file. -f - may also be used to flag reading from STDIN.
22
23

COMMANDS

25   netavark setup
26       The setup command configures the given network namespace with the given
27       configuration, creating any interfaces and firewall rules necessary.
28
29
30   netavark teardown
31       The teardown command is the inverse of the setup command,  undoing  any
32       configuration  applied.  Some interfaces may not be deleted (bridge in‐
33       terfaces, for example, will not be removed).
34
35
36   CONFIGURATION FORMAT
37       The configuration accepted is the same for both setup and teardown.  It
38       is JSON formatted.
39
40
41       Format               is              https://github.com/containers/pod
42       man/blob/cd7b48198c38c5028540e85dc72dd3406f4318f0/libpod/net‐
43       work/types/network.go#L164-L173  but we will also send a Networks array
44       including  all  the  network  definitions  (https://github.com/contain
45       ers/podman/blob/cd7b48198c38c5028540e85dc72dd3406f4318f0/libpod/net‐
46       work/types/network.go#L32-L62) TODO: Transcribe configuration into here
47       in a nice tabular format
48
49

EXAMPLE

51       netavark setup /run/user/1000/podman/netns/d11d1f9c499d
52
53
54       netavark    -f    /run/podman/828b0508ae64.conf    teardown   /run/pod‐
55       man/netns/828b0508ae64
56
57

SEE ALSO

59       podman(1)
60
61

HISTORY

63       September 2021,  Originally  compiled  by  Matt  Heon  mheon@redhat.com
64       ⟨mailto:mheon@redhat.com⟩
65
66
67
68                                                                 netavark(1)()
Impressum