mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Update docker
parent
a65a872e4f
commit
70ee281302
1 changed files with 13 additions and 1 deletions
14
docker.md
14
docker.md
|
@ -8,5 +8,17 @@
|
|||
Eg. To disable apparmor confinement on a docker container add the following to the _docker run_ command.
|
||||
|
||||
```
|
||||
--security-opt apparmor=unconfined
|
||||
$ docker run --rm -it --security-opt apparmor=unconfined hello-world
|
||||
```
|
||||
|
||||
# Updating the unit file
|
||||
ExecStartPre=/sbin/apparmor_parser -r -W /etc/apparmor.d/no_raw_net
|
||||
ExecStart=/usr/bin/docker run --security-opt apparmor=<profile>
|
||||
|
||||
eg.
|
||||
|
||||
|
||||
# References
|
||||
|
||||
* https://docs.docker.com/engine/security/apparmor/
|
||||
*
|
Loading…
Add table
Reference in a new issue