Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • Thanks for any answer. I think this question might be useful to others in the future, more and more, because it happened to a colleague of mine, and we solved it, but we didn't understand very well how. Maybe I will share a solution after I find out. This question is more an attempt to document this case for others, than a concrete question from myself. Commented Mar 28, 2024 at 15:12
  • 1
    Delete the non-root user that docker was installed under, including its home directory. If you configured it to store its images somewhere else, remove that directory too. Commented Mar 28, 2024 at 15:30
  • 3
    Ah, that's not a fundamentally different installation, that's just a different kind of operation. You don't uninstall, you reconfigure, probably. But now the problem is that you went with the lesser-supported way of using the manual install instead of a simply apt install docker (or apt install docker-ce). If you did it this debian/ubuntu way, uninstallation would just be an apt remove away. For the binary installer… not so much, I guess. Commented Mar 29, 2024 at 15:27
  • 1
    Thanks @MarcusMüller - I still don't know a suitable rephrase. I think some people will try to land here with the above title. "How to reconfigure Docker to avoid rootless mode?" or something like that? Edit welcome Commented Mar 29, 2024 at 15:35
  • 1
    Unless you've made some spectacularly poor decisions while installing Docker rootless, deleting the docker user will do exactly what you need. Commented Mar 29, 2024 at 16:31