Skip to content

Commit 683564a

Browse files
authored
Nomad Docs: Podman driver - add pasta parm to network_mode (#1469)
2 parents bbade1f + 9cf0598 commit 683564a

File tree

1 file changed

+11
-6
lines changed
  • content/nomad/v1.11.x/content/plugins/drivers

1 file changed

+11
-6
lines changed

content/nomad/v1.11.x/content/plugins/drivers/podman.mdx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,11 @@ The `podman` driver implements the following [capabilities](/nomad/plugins/autho
387387
```
388388

389389
- `network_mode` - (Optional) Set the [network mode][network-mode] for the
390-
container. By default the task uses the network stack defined in the task
390+
container. By default, the task uses the network stack defined in the task
391391
group [`network`][nomad_group_network] block. If the groups network behavior
392-
is also undefined, it will fallback to `bridge` in rootful mode or
393-
`slirp4netns` for rootless containers.
392+
is also undefined, it falls back to `bridge` in rootful mode, `slirp4netns`
393+
for rootless containers on Podman version less than 5.0.0, or `pasta` for
394+
rootless containers on Podman v5.0.0 or greater.
394395

395396
- `bridge` - (Default for rootful) Create a network stack on the default
396397
Podman bridge.
@@ -399,9 +400,13 @@ The `podman` driver implements the following [capabilities](/nomad/plugins/autho
399400
container full access to local system services such as D-bus and is therefore
400401
considered insecure.
401402
- `none` - No networking.
402-
- `slirp4netns` - (Default for rootless) Use `slirp4netns` to create a user
403-
network stack. Podman currently does not support this option for rootful
404-
containers ([issue][slirp-issue]).
403+
- `pasta`: Use `pasta` to create a user network stack. This is the
404+
default for rootless containers on Podman v5.0.0 or greater.
405+
- `slirp4netns`: Use `slirp4netns` to create a user network stack. This is the
406+
default for rootless containers on Podman versions less than 5.0.0. Podman
407+
does not support `slirp4netns` for root containers. Refer to this [Podman
408+
GitHub issue](https://github.com/containers/libpod/issues/6097) for an
409+
explanation.
405410
- `task:name-of-other-task`: Join the network of another task in the same
406411
allocation.
407412

0 commit comments

Comments
 (0)