Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --security-opts options to allow user to customize container labels. #7425

Closed
wants to merge 1 commit into from

Commits on Sep 29, 2014

  1. Add --security-opts options to allow user to customize security confi…

    …guration
    
    security-opts will allow you to customise the security subsystem.
    
    For example the labeling system like SELinux will run on a container.
    
        --security-opt="label:user:USER"   : Set the label user for the container
        --security-opt="label:role:ROLE"   : Set the label role for the container
        --security-opt="label:type:TYPE"   : Set the label type for the container
        --security-opt="label:level:LEVEL" : Set the label level for the container
        --security-opt="label:disabled"    : Turn off label confinement for the container
    
    Since we are passing a list of string options instead of a space separated
    string of options, I will change function calls to use InitLabels instead of
    GenLabels.  Genlabels interface is Depracated.
    
    Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
    rhatdan committed Sep 29, 2014
    Configuration menu
    Copy the full SHA
    ead5d45 View commit details
    Browse the repository at this point in the history