@@ -51,9 +51,7 @@ Valid _mode_ values are:
51
51
stack. \
52
52
This is the default for rootless containers and only supported in rootless mode. \
53
53
By default, IPv4 and IPv6 addresses and routes, as well as the pod interface
54
- name, are copied from the host. If port forwarding isn't configured, ports
55
- are forwarded dynamically as services are bound on either side (init
56
- namespace or container namespace). Port forwarding preserves the original
54
+ name, are copied from the host. Port forwarding preserves the original
57
55
source IP address. Options described in pasta(1) can be specified as
58
56
comma-separated arguments. \
59
57
In terms of pasta(1) options, ** --config-net** is given by default, in
@@ -62,11 +60,20 @@ Valid _mode_ values are:
62
60
container to host using the gateway address. The latter can be overridden
63
61
by passing ** --map-gw** in the pasta-specific options (despite not being an
64
62
actual pasta(1) option). \
63
+ For better integration with DNS handling, ** --dns-forward 169.254.1.1** is passed,
64
+ and this address is added to resolv.conf(5) as first resolver. It is possible to pass
65
+ ** --dns-forward** explicitly in case a different IP address should be used.
66
+ To make the ` host.containers.internal ` /etc/hosts entry work and allow connections
67
+ to the host, ** --map-guest-addr 169.254.1.2** is passed. Again, it can be set
68
+ explicitly to choose a different IP address. \
65
69
Also, ** -t none** and ** -u none** are passed if, respectively, no TCP or
66
- UDP port forwarding from host to container is configured, to disable
67
- automatic port forwarding based on bound ports. Similarly, ** -T none** and
68
- ** -U none** are given to disable the same functionality from container to
70
+ UDP port forwarding from host to container is configured (via Podman's
71
+ ** --publish** or by passing the pasta ** -t** /** -u** options directly),
72
+ to disable automatic port forwarding based on bound ports. Similarly, ** -T none**
73
+ and ** -U none** are given to disable the same functionality from container to
69
74
host. \
75
+ All options can also be set in ** [ containers.conf(5)] ( https://github.com/containers/common/blob/main/docs/containers.conf.5.md ) ** ;
76
+ see the ` pasta_options ` key under the network section in that file. \
70
77
Some examples:
71
78
- ** pasta:--map-gw** : Allow the container to directly reach the host using the
72
79
gateway address.
0 commit comments