Recently I've been trying to run my Docker application as a non-root user. I've seen there are several options available to me:
- Install rootless Docker : apparently this is a "non-root" version of Docker that runs containers as users other than root.
- Use normal (rootful) Docker, but run containers with
docker run
with the--user
flag. - User Podman to run the container.
I am not familiar with any of these solutions, I've only ever used Docker as root. So what are the differences and advantages/disadvantages of these methods?
Isn't the result exactly the same, i.e., a container running as non-root user?