diff options
Diffstat (limited to 'redhat/docker/pclinuxos.sh')
-rwxr-xr-x | redhat/docker/pclinuxos.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/redhat/docker/pclinuxos.sh b/redhat/docker/pclinuxos.sh index aa906f26c..cd7689569 100755 --- a/redhat/docker/pclinuxos.sh +++ b/redhat/docker/pclinuxos.sh @@ -47,11 +47,12 @@ sudo chroot "${INSTALLROOT}" apt-get -y upgrade sudo umount "${INSTALLROOT}/dev/shm" sudo umount "${INSTALLROOT}/dev" -sudo tar -C "${INSTALLROOT}" -c . >"${IMAGE}.tar" +docker rmi -f "${IMAGE}" || : +sudo tar -C "${INSTALLROOT}" -c . | docker import - "${IMAGE}" +docker run -ti --rm "${IMAGE}" ls -l sudo rm -rf "${INSTALLROOT}" -docker rmi -f "${IMAGE}" || : -cat "${IMAGE}.tar" | docker import - "${IMAGE}" +docker image save "${IMAGE}" >"${IMAGE}.tar" rm -f "${IMAGE}.tar.gz" pigz -9 "${IMAGE}.tar" mv -vf "${IMAGE}.tar.gz" "${HOME}/tde/obs" |