title: Disable root login into the docker container
body: <p>I am new to the docker. I am trying to disable direct root login into the container. For that
  I did few things but unable to fix it any input will help a lot</p>
  <p>we can log in directly from user but when put user as Root then I log in directly</p>
  <p>root@ip-10-11-175-238:~# docker exec -it  9ec767e2c4ae /bin/bash</p>
  <p>dpant@9ec767e2c4ae:/$ ls -la  /root</p>
  <p>ls: cannot open directory '/root': Permission denied</p>
  <p>dpant@9ec767e2c4ae:/$</p>
  <p>root@ip-10-11-175-238:~# docker exec -it --user root  2fba98d9d60e /bin/bash
  root@2fba98d9d60e:/home/ubuntu#</p>
  <p>I can obstruct the Root from the first option where I have set password on root and also on the user which sudo access, But when I try from Root then all everything is open for me
  I want to deploy the container on other environment but no one can access it</p>
  <p>Regards
  Dk</p>