Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
213e7ec
common: remove pkg/cgroupv2
lsm5 Oct 24, 2025
ff00d90
CgroupControl: remove cgroup2 and additionalControllers
lsm5 Oct 24, 2025
8251431
Remove unused parameters and functions post CgroupControl cleanup
lsm5 Oct 24, 2025
80309d7
common/pkg: remove additional cgroups2 conditionals w/o error check
lsm5 Oct 24, 2025
2cf45c5
common/pkg: error check IsCgroup2UnifiedMode and assume true
lsm5 Oct 24, 2025
ed47881
common/pkg/sysinfo: checkCgroupPids needs no args
lsm5 Oct 24, 2025
ceaec36
Remove Create method from controllerHandler
lsm5 Oct 24, 2025
5f98dfb
Remove Destroy method from controllerHandler
lsm5 Oct 24, 2025
cce5ec8
delete cgroups.AddPid
lsm5 Oct 24, 2025
b7be55c
common/pkg/config: cleanup defaultCgroupManager
lsm5 Oct 24, 2025
26e4421
cgroups: remove ErrCgroupV1Rootless code
lsm5 Oct 24, 2025
e94388d
common/pkg/cgroups.AvailableControllers simplification
lsm5 Oct 25, 2025
05794bf
common: Remove slirp for podman6
lsm5 Oct 17, 2025
035bc3f
common: remove slirp from pkg/ssh
lsm5 Oct 16, 2025
d8949d1
common: remove slirp from docs, configs and tests
lsm5 Oct 16, 2025
f3f043f
rpm: remove slirp4netns weak dependency
lsm5 Oct 16, 2025
c4ae539
common/pkg/libnetwork: Remove CNI for podman6
lsm5 Oct 22, 2025
9c0266f
common/Makefile: remove cni
lsm5 Oct 22, 2025
74f39e0
remove goimport: go.podman.io/common/libnetwork/cni
lsm5 Oct 22, 2025
6c544d5
common/pkg/config: remove CNI
lsm5 Oct 25, 2025
bccb31b
go.mod: remove cni
lsm5 Oct 25, 2025
9e16684
go.sum: remove cni
lsm5 Oct 26, 2025
3c47737
common/docs: remove cni
lsm5 Oct 26, 2025
e67d98c
common/pkg/rootlessport: Remove CNI
lsm5 Oct 26, 2025
48e9025
common/libnetwork/internal/rootlessnetns: Remove CNI
lsm5 Oct 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,15 @@ build-cross:
$(call go-build,freebsd,386,${BUILDTAGS})

.PHONY: all
all: build-amd64 build-386 build-amd64-cni
all: build-amd64 build-386

.PHONY: build
build: build-amd64 build-386 build-amd64-cni
build: build-amd64 build-386

.PHONY: build-amd64
build-amd64:
GOARCH=amd64 $(GO_BUILD) -tags $(BUILDTAGS) ./...

.PHONY: build-amd64-cni
build-amd64-cni:
GOARCH=amd64 $(GO_BUILD) -tags $(BUILDTAGS),cni ./...

.PHONY: build-386
build-386:
ifneq ($(shell uname -s), Darwin)
Expand Down Expand Up @@ -102,7 +98,6 @@ test: test-unit
test-unit: netavark-testplugin
go test --tags seccomp,$(BUILDTAGS) -v ./...
go test --tags remote,$(BUILDTAGS) -v ./pkg/config
go test --tags cni,$(BUILDTAGS) -v ./libnetwork/cni

clean: ## Clean artifacts
$(MAKE) -C docs clean
Expand Down
55 changes: 8 additions & 47 deletions common/docs/containers.conf.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ Logging driver for the container. Currently available options are k8s-file, jour

**log_path**=""

Default path for container logs to be stored in. When empty, logs will be stored
Default path for container logs to be stored in. When empty, logs will be stored
in the container's default storage and removed when the container is removed.
A subdirectory named with the container ID will be created under the specified
A subdirectory named with the container ID will be created under the specified
path, and the log file will have the default name `ctr.log` within that directory.
This option can be overridden by the `--log-opt` flag.

Expand Down Expand Up @@ -418,34 +418,18 @@ Specified as "directory-on-host:directory-in-container:options".
Example: "/db:/var/lib/db:ro".

## NETWORK TABLE
The `network` table contains settings pertaining to the management of CNI
The `network` table contains settings pertaining to the management of netavark
plugins.

**network_backend**=""

Network backend determines what network driver will be used to set up and tear down container networks.
Valid values are "cni" and "netavark".
The default value is empty which means that it will automatically choose CNI or netavark. If there are
already containers/images or CNI networks preset it will choose CNI.
Valid value is "netavark".
The default value is empty which means that it will automatically choose netavark.

Before changing this value all containers must be stopped otherwise it is likely that
iptables rules and network interfaces might leak on the host. A reboot will fix this.

**cni_plugin_dirs**=[]

List of paths to directories where CNI plugin binaries are located.

The default list is:
```
cni_plugin_dirs = [
"/usr/local/libexec/cni",
"/usr/libexec/cni",
"/usr/local/lib/cni",
"/usr/lib/cni",
"/opt/cni/bin",
]
```

**netavark_plugin_dirs**=[]

List of directories that will be searched for netavark plugins.
Expand Down Expand Up @@ -495,14 +479,12 @@ default_subnet_pools = [

**default_rootless_network_cmd**="pasta"

Configure which rootless network program to use by default. Valid options are
`slirp4netns` and `pasta` (default).
Configure which rootless network program to use by default. Valid option is
`pasta` (default).

**network_config_dir**="/etc/cni/net.d/"
**network_config_dir**="/etc/containers/networks/"

Path to the directory where network configuration files are located.
For the CNI backend the default is __/etc/cni/net.d__ as root
and __$HOME/.config/cni/net.d__ as rootless.
For the netavark backend "/etc/containers/networks" is used as root
and "$graphroot/networks" as rootless.

Expand Down Expand Up @@ -675,7 +657,6 @@ The following binaries are searched in these directories:
- catatonit
- netavark
- pasta
- slirp4netns

Podman machine uses it for these binaries:
- gvproxy
Expand Down Expand Up @@ -778,26 +759,6 @@ and pods are visible.

**network_cmd_path**=""

Path to the slirp4netns binary.

**network_cmd_options**=[]

Default options to pass to the slirp4netns binary.

Valid options values are:

- **allow_host_loopback=true|false**: Allow the slirp4netns to reach the host loopback IP (`10.0.2.2`). Default is false.
- **mtu=MTU**: Specify the MTU to use for this network. (Default is `65520`).
- **cidr=CIDR**: Specify ip range to use for this network. (Default is `10.0.2.0/24`).
- **enable_ipv6=true|false**: Enable IPv6. Default is true. (Required for `outbound_addr6`).
- **outbound_addr=INTERFACE**: Specify the outbound interface slirp should bind to (ipv4 traffic only).
- **outbound_addr=IPv4**: Specify the outbound ipv4 address slirp should bind to.
- **outbound_addr6=INTERFACE**: Specify the outbound interface slirp should bind to (ipv6 traffic only).
- **outbound_addr6=IPv6**: Specify the outbound ipv6 address slirp should bind to.
- **port_handler=rootlesskit**: Use rootlesskit for port forwarding. Default.
Note: Rootlesskit changes the source IP address of incoming packets to a IP address in the container network namespace, usually `10.0.2.100`. If your 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.
- **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.

**no_pivot_root**=false

Whether to use chroot instead of pivot_root in the runtime.
Expand Down
1 change: 0 additions & 1 deletion common/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ require (
github.com/checkpoint-restore/checkpointctl v1.4.0
github.com/checkpoint-restore/go-criu/v7 v7.2.0
github.com/containerd/platforms v0.2.1
github.com/containernetworking/cni v1.3.0
github.com/containernetworking/plugins v1.8.0
github.com/containers/ocicrypt v1.2.1
github.com/coreos/go-systemd/v22 v22.6.0
Expand Down
10 changes: 0 additions & 10 deletions common/libnetwork/cni/README.md

This file was deleted.

Loading
Loading