on-internet
← Community

Docker - "no-new-privileges"

Stack Overflow ·

I am having a little challenge around using the --security-opt=no-new-privileges flag for Docker. I am trying to follow this guide to build a Docker home server, and I managed to do everything. But in order to get things running, I had to turn off said flag. As for where I enable it, the container does not create and the log shows "standard_init_linux.go:211: exec user process caused "operation not permitted"" error. As I am getting this when directly running a container:  fabrice@docker-01  ~  1  sudo docker run -ti --security-opt=no-new-privileges --name test fedora:25 bash standard_init

Comments

Sign in or sign up to comment and upvote.

No comments yet.