---
title: "Discussion on \"Why I Stopped Running My Docker Containers as Root (And Why You Should Too)\" | Hashnode"
description: "Discussion on \"Why I Stopped Running My Docker Containers as Root (And Why You Should Too)\". Learn why running Docker containers as non-root users enhances security and how to easily set up a non-root NGINX container"
url: "https://hashnode.com/posts/why-i-stopped-running-my-docker-containers-as-root-and-why-you-should-too/6890b24d413717575ce67fcb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why I Stopped Running My Docker Containers as Root (And Why You Should Too)](https://muskanagrawal.hashnode.dev/why-i-stopped-running-my-docker-containers-as-root-and-why-you-should-too?utm_source=hashnode&utm_medium=feed)

Learn why running Docker containers as non-root users enhances security and how to easily set up a non-root NGINX container

Aug 4, 2025 · 3 min read · muskanagrawal.hashnode.dev  
Read the article

-   [#nginxconf](https://hashnode.com/tag/nginxconf)
-   [#nginx](https://hashnode.com/tag/nginx)
-   [#root](https://hashnode.com/tag/root)
-   [#rootless](https://hashnode.com/tag/rootless)
-   [#rootless-docker](https://hashnode.com/tag/rootless-docker)
-   [#rootless-mode](https://hashnode.com/tag/rootless-mode)
-   [#docker](https://hashnode.com/tag/docker)
-   [#docker-images](https://hashnode.com/tag/docker-images)
-   [#dockerfile](https://hashnode.com/tag/dockerfile)
-   [#docker-run](https://hashnode.com/tag/docker-run)
-   [#docker-build](https://hashnode.com/tag/docker-build)
-   [#docker-exec](https://hashnode.com/tag/docker-exec)

## Written by

[Muskan Agrawal](https://hashnode.com/@muskan-agrawal)

@muskan-agrawal · India

  
[View profile](https://hashnode.com/@muskan-agrawal)

Cloud (Devops) Support Engineer at AWS | Demystifying DevOps

Cloud and DevOps professional with a passion for automation, containers, and cloud-native practices, committed to sharing lessons from the trenches while always seeking new challenges. Combining hands-on expertise with an open mind, I write to demystify the complexities of DevOps and grow alongside the tech community.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
