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>
| ... | ... |
@@ -60,6 +60,6 @@ mknod -m 600 $DEV/initctl p |
| 60 | 60 |
mknod -m 666 $DEV/ptmx c 5 2 |
| 61 | 61 |
ln -sf /proc/self/fd $DEV/fd |
| 62 | 62 |
|
| 63 |
-tar --numeric-owner -C $ROOTFS -c . | docker import - archlinux |
|
| 63 |
+tar --numeric-owner --xattrs --acls -C $ROOTFS -c . | docker import - archlinux |
|
| 64 | 64 |
docker run -i -t archlinux echo Success. |
| 65 | 65 |
rm -rf $ROOTFS |