Skip to content

Instantly share code, notes, and snippets.

@lucj
Created August 25, 2016 15:06
Show Gist options
  • Save lucj/5f21f7c62b88663692751f0ef9a7921f to your computer and use it in GitHub Desktop.
Save lucj/5f21f7c62b88663692751f0ef9a7921f to your computer and use it in GitHub Desktop.
run container with and without selinux labels
# Run confined container
[root@node ~]# docker run -it ubuntu /bin/bash
standard_init_linux.go:175: exec user process caused "permission denied"
# Run unconfined container
[root@node ~]# docker run -it --security-opt label:disable ubuntu /bin/bash
root@f76b8d4fa87e:/#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment