Is it safe to run docker container in production as root?

How safe it is to run docker container as root user in production environment ? Is this standard practice or it is recommended to run docker container as non root user ?

Edit :

  • How to locate an core site on subpath
  • Don't understand why my Docker image is not being saved
  • Docker project structure with submodules
  • Can docker containers share a directory amongst them
  • Execute script inside docker container which is folder different than WORKDIR
  • Kubernetes - Creating a specific namespace for “services”
  • My question assumes running docker daemon, docker client and application inside docker as root ( everything as root docker server, client and application inside container )

  • docker-compose links between app and db
  • How to RUN docker commands inside a folder
  • Link & Expose Docker Container Simultaniously
  • How I can create docker-machine from Command-Line on Docker for Mac without VirtualBox?
  • Docker CMD instruction execution
  • kube-dns can not resolve 'kubernetes.default.svc.cluster.local'
  • One Solution collect form web for “Is it safe to run docker container in production as root?”

    It is safer, and better practice, to run as non-root, both in docker and non-docker environments. However, running as root within a docker container is at least somewhat less dangerous than running as root directly in the primary OS, but definitely for a production system running as root is pretty much unheard of by any company with even the most basic security concerns.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.