diff options
author | Dan Griffin <dgriffin@peer1.com> | 2014-10-06 09:23:56 +0100 |
---|---|---|
committer | Dan Griffin <dgriffin@peer1.com> | 2014-10-06 09:58:33 +0100 |
commit | e857716d2d881aaf1cf5a775d02ee5b109d9e423 (patch) | |
tree | 9ec9facdcd380eb155c0c9a96a68a18f1f81a2cf /contrib/mkimage-arch.sh | |
parent | 44264f48e43bd556636326229e7e11c0fb8a23e1 (diff) | |
download | docker-e857716d2d881aaf1cf5a775d02ee5b109d9e423.tar.gz |
Preserve extended attributes and acls on archlinux build
Failure to do this means that file capabilites are not preserved in the image.
Ping fails to work as a non-root user if cap_net_raw is capability is not set
Signed-off-by: Dan Griffin <dgriffin@peer1.com>
Diffstat (limited to 'contrib/mkimage-arch.sh')
-rwxr-xr-x | contrib/mkimage-arch.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/mkimage-arch.sh b/contrib/mkimage-arch.sh index e83b2b6731..35cb1617d5 100755 --- a/contrib/mkimage-arch.sh +++ b/contrib/mkimage-arch.sh @@ -60,6 +60,6 @@ mknod -m 600 $DEV/initctl p mknod -m 666 $DEV/ptmx c 5 2 ln -sf /proc/self/fd $DEV/fd -tar --numeric-owner -C $ROOTFS -c . | docker import - archlinux +tar --numeric-owner --xattrs --acls -C $ROOTFS -c . | docker import - archlinux docker run -i -t archlinux echo Success. rm -rf $ROOTFS |