On 07/29/2015 07:35 PM, yathindra dev wrote:
> Hi,
> 
> I'm trying to apply Apparmor profiles to a guest docker container. Apparmor is
> installed on the host. Docker supports loading a Apparmor profile using
> --security-opts=apparmor:profile_name. But is there a way in which we can 
> apply
> apparmor profiles from the host apparmor without having to use --security-opts
> while bringing up the container? And without having to install apparmor inside
> the guest container.
> 
You didn't mention what host OS you are using, but by default the docker daemon
will create and load a 'docker-default' profile (/etc/apparmor.d/docker) and
will run containers under this profile. Only if you create your own profiles do
you need to use --security-opts=apparmor:profile_name. You can verify this by
running a container and then observing 'ps Z' or 'aa-status' output. If
containers are not being launched under the docker-default profile, your system
and or docker may be configured to not use apparmor. You do not have to install
docker inside the guest container.

-- 
Jamie Strandboge                 http://www.ubuntu.com/

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to