Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Disable AppArmor in docker containers
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed May 14, 2016
1 parent 0ca7909 commit 026c0b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Dockerfile.ubuntu-16.04
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ RUN apt-get install -y ansible ufw curl
COPY initctl_faker .
RUN chmod +x initctl_faker && rm -fr /sbin/initctl && ln -s /initctl_faker /sbin/initctl

# Disable AppArmor as it doesn't work properly within Docker containers.
RUN update-rc.d -f apparmor remove
RUN rm /etc/init.d/apparmor

# Install Ansible inventory file
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts

0 comments on commit 026c0b3

Please sign in to comment.