mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-14 10:17:26 +08:00
Mount securityfs to allow apparmor profiles in PWD
This commit is contained in:
parent
b447170d91
commit
e60622ff9e
@ -40,7 +40,7 @@ CMD cat /etc/hosts >/etc/hosts.bak && \
|
||||
sed 's/^::1.*//' /etc/hosts.bak > /etc/hosts && \
|
||||
sed -i "s/\DOCKER_STORAGE_DRIVER/$DOCKER_STORAGE_DRIVER/" /etc/docker/daemon.json && \
|
||||
sed -i "s/\PWD_IP_ADDRESS/$PWD_IP_ADDRESS/" /etc/docker/daemon.json && \
|
||||
umount /var/lib/docker && \
|
||||
umount /var/lib/docker && mount -t securityfs none /sys/kernel/security && \
|
||||
dockerd &>/docker.log & \
|
||||
while true ; do script -q -c "/bin/bash -l" /dev/null ; done
|
||||
# ... and then put a shell in the foreground, restarting it if it exits
|
||||
|
Loading…
x
Reference in New Issue
Block a user