Should everyone use the rootless version?

I installed Docker on Debian using the following command:

$ sudo apt install docker-ce docker-ce-cli docker-buildx-plugin docker-compose-plugin

I have heard that docker rootless version is more secure. Is it correct? Should I migrate to the rootless version?

Thank you.

Yes, Docker rootless is more secure. But it can be more painful to maintain with creating separate users, always making sure bind mount have the right permissions, it does not support Docker Swarm…

1 Like

Thank you so much for your reply.
Are things like the YAML file and Dockerfile in the rootless version the same as the normal version?