diff --git a/docker/img2docker.sh b/docker/img2docker.sh index 0950155..e5da96d 100755 --- a/docker/img2docker.sh +++ b/docker/img2docker.sh @@ -20,7 +20,12 @@ mount="$(mktemp -d --tmpdir)" mount -o loop "$image" "$mount" cd "$mount" -tar -cpSf - --acls --selinux --xattrs * | docker import - "$tag" + +#this tar seems to cause issues such as rpmdb corruption +#tar -cpSf - --acls --selinux --xattrs * | docker import - "$tag" + +tar --numeric owner -c . | docker import - "$tag" + cd - >& /dev/null umount "$mount" rmdir "$mount"