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: src/content/blog/podman-and-docker-rootless.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ categories:
14
14
15
15
The DDEV community has requested Podman and Docker Rootless support for years. This support is now available in [DDEV HEAD](https://docs.ddev.com/en/stable/developers/building-contributing/#testing-latest-commits-on-head) as an experimental feature, general availability is planned for upcoming DDEV v1.25.0.
16
16
17
-
It allows DDEV to work in corporate environments where Docker Desktop is not allowed due to security policies or licensing restrictions.
17
+
It allows DDEV to work in corporate environments where Podman or Rootless Docker are preferred due to security policies or licensing restrictions.
18
18
19
19
This required major changes to how DDEV works with container runtimes. We rebuilt core infrastructure and fixed compatibility issues that existed since DDEV's start.
20
20
@@ -78,9 +78,9 @@ All of these work with DDEV. The main reason to choose Podman specifically is if
78
78
79
79
### Why Choose Rootless?
80
80
81
-
Running containers without root privileges is more secure. Traditional Docker and rootful Podman need elevated privileges, which creates security risks in corporate environments where strict security policies apply.
81
+
Although DDEV's use of all Docker providers is quite secure, and we run containers as normal users with limited privileges, the rootless approaches to Docker and Podman actually run the *Docker daemon*without root privileges, closing additional attack surface. Traditional Docker and rootful Podman daemons need elevated privileges, which creates security risks in corporate environments where strict security policies apply. (Note that DDEV is targeted at local development, where there are few risks of specialized attacks using this vector anyway.)
82
82
83
-
Rootless alternatives (Podman Rootless and Docker Rootless) run containers without root access. This means:
83
+
Rootless alternatives (Podman Rootless and Docker Rootless) run the daemon without root access, fundamentally and completely cutting off root privileges for containers. This means:
84
84
85
85
- No root daemon on the system, only a rootless daemon in userspace
@@ -96,15 +96,15 @@ There is a [Docker Engine API](https://docs.docker.com/reference/api/engine/), w
96
96
97
97
Podman can work without a socket, but to have access to the Docker API, it's necessary to enable it. The socket lets DDEV use the Docker API to talk to Podman, so DDEV can support both Docker and Podman with the same code.
98
98
99
-
## Linux and WSL2
99
+
## Key aim: Linux and WSL2 users
100
100
101
101
The primary focus for this article is Linux and WSL2 (we have test coverage for Linux only for now). Most features and configurations are well-tested on these platforms.
102
102
103
103
### Installing Podman
104
104
105
105
Install Podman using your distribution's package manager. See the [official Podman installation guide for Linux](https://podman.io/docs/installation#installing-on-linux).
106
106
107
-
**Note:** Some distributions may have outdated Podman versions. This is the case with Ubuntu 24.04, which has Podman 4.9.3. We recommend using Podman 5.0 or newer for the best experience, because we didn't have success with Podman 4.x in our automated tests, but you can still use Podman 4.x ignoring the warning on `ddev start`.
107
+
**Note:** Some distributions may have outdated Podman versions. This is the case with Ubuntu 24.04, which has Podman 4.9.3. We require Podman 5.0 or newer for the best experience, because we didn't have success with Podman 4.x in our automated tests, but you can still use Podman 4.x ignoring the warning on `ddev start`.
108
108
109
109
You can also install [Podman Desktop](https://podman-desktop.io/docs/installation/linux-install) if you prefer a GUI.
110
110
@@ -298,7 +298,7 @@ Rootful Podman requires configuring user group permissions.
298
298
299
299
### Podman Rootless Performance Optimization
300
300
301
-
Podman Rootless is slower than Docker. See these resources:
301
+
Podman Rootless is significantly slower than Docker. See these resources:
0 commit comments