How do I prevent root access to my docker container
问题 I am working on hardening our docker images, which I already have a bit of a weak understanding of. With that being said, the current step I am on is preventing the user from running the container as root. To me, that says "when a user runs 'docker exec -it my-container bash', he shall be an unprivileged user" (correct me if I'm wrong). When I start up my container via docker-compose, the start script that is run needs to be as root since it deals with importing certs and mounted files