Merge pull request #21232 from calavera/consolidate_security_opts_format
Consolidate security options to use `=` as separator. Upstream-commit: 06e98f0a5cf59c040e9f753d60f33ba22256d55c Component: engine
This commit is contained in:
@ -69,7 +69,7 @@ override it with the `security-opt` option. For example, the following
|
||||
explicitly specifies the default policy:
|
||||
|
||||
```bash
|
||||
$ docker run --rm -it --security-opt apparmor:docker-default hello-world
|
||||
$ docker run --rm -it --security-opt apparmor=docker-default hello-world
|
||||
```
|
||||
|
||||
## Loading and Unloading Profiles
|
||||
@ -83,7 +83,7 @@ $ apparmor_parser -r -W /path/to/your_profile
|
||||
Then you can run the custom profile with `--security-opt` like so:
|
||||
|
||||
```bash
|
||||
$ docker run --rm -it --security-opt apparmor:your_profile hello-world
|
||||
$ docker run --rm -it --security-opt apparmor=your_profile hello-world
|
||||
```
|
||||
|
||||
To unload a profile from AppArmor:
|
||||
|
||||
@ -66,7 +66,7 @@ it with the `security-opt` option. For example, the following explicitly
|
||||
specifies the default policy:
|
||||
|
||||
```
|
||||
$ docker run --rm -it --security-opt seccomp:/path/to/seccomp/profile.json hello-world
|
||||
$ docker run --rm -it --security-opt seccomp=/path/to/seccomp/profile.json hello-world
|
||||
```
|
||||
|
||||
### Significant syscalls blocked by the default profile
|
||||
@ -138,6 +138,6 @@ You can pass `unconfined` to run a container without the default seccomp
|
||||
profile.
|
||||
|
||||
```
|
||||
$ docker run --rm -it --security-opt seccomp:unconfined debian:jessie \
|
||||
$ docker run --rm -it --security-opt seccomp=unconfined debian:jessie \
|
||||
unshare --map-root-user --user sh -c whoami
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user