You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/markdown/options/network.image.md
+2-13Lines changed: 2 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,6 @@ considered insecure.
15
15
-**ns:**_path_: path to a network namespace to join.
16
16
-**private**: create a new namespace for the container (default)
17
17
-**\<network name|ID\>**: Join the network with the given name or ID, e.g. use `--network mynet` to join the network with the name mynet. Only supported for rootful users.
18
-
-**slirp4netns[:OPTIONS,...]**: use **slirp4netns**(1) to create a user network stack. It is possible to specify these additional options, they can also be set with `network_cmd_options` in containers.conf:
19
-
-**allow_host_loopback=true|false**: Allow slirp4netns to reach the host loopback IP (default is 10.0.2.2 or the second IP from slirp4netns cidr subnet when changed, see the cidr option below). The default is false.
20
-
-**mtu=MTU**: Specify the MTU to use for this network. (Default is `65520`).
21
-
-**cidr=CIDR**: Specify ip range to use for this network. (Default is `10.0.2.0/24`).
22
-
-**enable_ipv6=true|false**: Enable IPv6. Default is true. (Required for `outbound_addr6`).
23
-
-**outbound_addr=INTERFACE**: Specify the outbound interface slirp binds to (ipv4 traffic only).
24
-
-**outbound_addr=IPv4**: Specify the outbound ipv4 address slirp binds to.
25
-
-**outbound_addr6=INTERFACE**: Specify the outbound interface slirp binds to (ipv6 traffic only).
26
-
-**outbound_addr6=IPv6**: Specify the outbound ipv6 address slirp binds to.
27
18
-**pasta[:OPTIONS,...]**: use **pasta**(1) to create a user-mode networking
28
19
stack. \
29
20
This is the default for rootless containers and only supported in rootless mode. \
@@ -49,13 +40,11 @@ considered insecure.
49
40
-**pasta:--mtu,1500**: Specify a 1500 bytes MTU for the _tap_ interface in
Copy file name to clipboardExpand all lines: docs/source/markdown/options/network.md
+3-19Lines changed: 3 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,21 +31,7 @@ Valid _mode_ values are:
31
31
32
32
-**ns:**_path_: Path to a network namespace to join.
33
33
34
-
-**private**: Create a new namespace for the container. This uses the **bridge** mode for rootful containers and **slirp4netns** for rootless ones.
35
-
36
-
-**slirp4netns[:OPTIONS,...]**: use **slirp4netns**(1) to create a user network stack. It is possible to specify these additional options, they can also be set with `network_cmd_options` in containers.conf:
37
-
38
-
-**allow_host_loopback=true|false**: Allow slirp4netns to reach the host loopback IP (default is 10.0.2.2 or the second IP from slirp4netns cidr subnet when changed, see the cidr option below). The default is false.
39
-
-**mtu=**_MTU_: Specify the MTU to use for this network. (Default is `65520`).
40
-
-**cidr=**_CIDR_: Specify ip range to use for this network. (Default is `10.0.2.0/24`).
41
-
-**enable_ipv6=true|false**: Enable IPv6. Default is true. (Required for `outbound_addr6`).
42
-
-**outbound_addr=**_INTERFACE_: Specify the outbound interface slirp binds to (ipv4 traffic only).
43
-
-**outbound_addr=**_IPv4_: Specify the outbound ipv4 address slirp binds to.
44
-
-**outbound_addr6=**_INTERFACE_: Specify the outbound interface slirp binds to (ipv6 traffic only).
45
-
-**outbound_addr6=**_IPv6_: Specify the outbound ipv6 address slirp binds to.
46
-
-**port_handler=rootlesskit**: Use rootlesskit for port forwarding. Default. \
47
-
Note: Rootlesskit changes the source IP address of incoming packets to an IP address in the container network namespace, usually `10.0.2.100`. If the application requires the real source IP address, e.g. web server logs, use the slirp4netns port handler. The rootlesskit port handler is also used for rootless containers when connected to user-defined networks.
48
-
-**port_handler=slirp4netns**: Use the slirp4netns port forwarding, it is slower than rootlesskit but preserves the correct source IP address. This port handler cannot be used for user-defined networks.
34
+
-**private**: Create a new namespace for the container. This uses the **bridge** mode for rootful containers.
49
35
50
36
-**pasta[:OPTIONS,...]**: use **pasta**(1) to create a user-mode networking
51
37
stack. \
@@ -80,13 +66,11 @@ Valid _mode_ values are:
80
66
-**pasta:--mtu,1500**: Specify a 1500 bytes MTU for the _tap_ interface in
Copy file name to clipboardExpand all lines: docs/source/markdown/podman-create.1.md.in
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -488,12 +488,12 @@ be installed. The shadow-utils package must include the newuidmap and newgidmap
488
488
489
489
In order for users to run rootless, there must be an entry for their username in /etc/subuid and /etc/subgid which lists the UIDs for their user namespace.
490
490
491
-
Rootless Podman works better if the fuse-overlayfs and slirp4netns packages are installed.
491
+
Rootless Podman works better if the fuse-overlayfs package is installed.
492
492
The fuse-overlayfs package provides a userspace overlay storage driver, otherwise users need to use
493
493
the vfs storage driver, which can be disk space expensive and less performant
494
494
than other drivers.
495
495
496
-
To enable VPN on the container, slirp4netns or pasta needs to be specified;
496
+
To enable VPN on the container, pasta needs to be specified;
497
497
without either, containers need to be run with the --network=host flag.
498
498
499
499
## ENVIRONMENT
@@ -543,7 +543,7 @@ page.
543
543
NOTE: Use the environment variable `TMPDIR` to change the temporary storage location of downloaded container images. Podman defaults to use `/var/tmp`.
Copy file name to clipboardExpand all lines: docs/source/markdown/podman-network.1.md
+1-4Lines changed: 1 addition & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,10 +44,7 @@ The default bridge network (called `podman`) uses 10.88.0.0/16 as a subnet. When
44
44
### Pasta
45
45
Pasta by default performs no Network Address Translation (NAT) and copies the IPs from your main interface into the container namespace. If pasta cannot find an interface with the default route, it will select an interface if there is only one interface with a valid route. If you do not have a default route and several interfaces have defined routes, pasta will be unable to figure out the correct interface and it will fail to start. To specify the interface, use `-i` option to pasta. A default set of pasta options can be set in **[containers.conf(5)](https://github.com/containers/common/blob/main/docs/containers.conf.5.md)** under the `[network]` section with the `pasta_options` key.
46
46
47
-
The default rootless networking tool can be selected in **[containers.conf(5)](https://github.com/containers/common/blob/main/docs/containers.conf.5.md)** under the `[network]` section with `default_rootless_network_cmd`, which can be set to `pasta` (default) or `slirp4netns`.
48
-
49
-
### Slirp4netns
50
-
Slirp4netns uses 10.0.2.0/24 for its default network. This can also be changed in **[containers.conf(5)](https://github.com/containers/common/blob/main/docs/containers.conf.5.md)** but under the `[engine]` section. Use the `network_cmd_options` key and add `["cidr=X.X.X.X/24"]` as a value. Note that slirp4netns needs a network prefix size between 1 and 25. This option accepts an array, so more options can be added in a comma-separated string as described on the **[podman-network-create(1)](podman-network-create.1.md)** man page. To change the CIDR for just one container, specify it on the cli using the `--network` option like this: `--network slirp4netns:cidr=192.168.1.0/24`.
47
+
The default rootless networking tool can be selected in **[containers.conf(5)](https://github.com/containers/common/blob/main/docs/containers.conf.5.md)** under the `[network]` section with `default_rootless_network_cmd`, which should be set to `pasta` (default).
51
48
52
49
### Podman network create
53
50
When a new network is created with a `podman network create` command, and no subnet is given with the --subnet option, Podman starts picking a free subnet from 10.89.0.0/24 to 10.255.255.0/24. Use the `default_subnet_pools` option under the `[network]` section in **[containers.conf(5)](https://github.com/containers/common/blob/main/docs/containers.conf.5.md)** to change the range and/or size that is assigned by default.
Copy file name to clipboardExpand all lines: docs/source/markdown/podman-run.1.md.in
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -937,12 +937,12 @@ be installed. The **shadow-utils** package must include the **newuidmap**(1) and
937
937
938
938
In order for users to run rootless, there must be an entry for their username in _/etc/subuid_ and _/etc/subgid_ which lists the UIDs for their user namespace.
939
939
940
-
Rootless Podman works better if the fuse-overlayfs and slirp4netns packages are installed.
940
+
Rootless Podman works better if the fuse-overlayfs package is installed.
941
941
The **fuse-overlayfs** package provides a userspace overlay storage driver, otherwise users need to use
942
942
the **vfs** storage driver, which can be disk space expensive and less
943
943
performant than other drivers.
944
944
945
-
To enable VPN on the container, slirp4netns or pasta needs to be specified;
945
+
To enable VPN on the container, pasta needs to be specified;
946
946
without either, containers need to be run with the --network=host flag.
947
947
948
948
## ENVIRONMENT
@@ -990,7 +990,7 @@ page.
990
990
NOTE: Use the environment variable `TMPDIR` to change the temporary storage location of downloaded container images. Podman defaults to use `/var/tmp`.
0 commit comments