| ... | ... |
@@ -62,6 +62,6 @@ mknod -m 666 ${DEV}/full c 1 7
|
| 62 | 62 |
mknod -m 600 ${DEV}/initctl p
|
| 63 | 63 |
mknod -m 666 ${DEV}/ptmx c 5 2
|
| 64 | 64 |
|
| 65 |
-tar -C $ROOTFS -c . | docker import - archlinux |
|
| 65 |
+tar --numeric-owner -C $ROOTFS -c . | docker import - archlinux |
|
| 66 | 66 |
docker run -i -t archlinux echo Success. |
| 67 | 67 |
rm -rf $ROOTFS |
| ... | ... |
@@ -189,10 +189,10 @@ if [ "$justTar" ]; then |
| 189 | 189 |
touch "$repo" |
| 190 | 190 |
|
| 191 | 191 |
# fill the tarball |
| 192 |
- sudo tar -caf "$repo" . |
|
| 192 |
+ sudo tar --numeric-owner -caf "$repo" . |
|
| 193 | 193 |
else |
| 194 | 194 |
# create the image (and tag $repo:$suite) |
| 195 |
- sudo tar -c . | $docker import - $repo $suite |
|
| 195 |
+ sudo tar --numeric-owner -c . | $docker import - $repo $suite |
|
| 196 | 196 |
|
| 197 | 197 |
# test the image |
| 198 | 198 |
$docker run -i -t $repo:$suite echo success |