packaging/qemu: Delete the temporary container

It is used a temporary container to pull the QEMU tarball out
of the build image, but this container is never deleted. This
will ensure it gets deleted after its execution.

Fixes #1168

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
Wainer dos Santos Moschetta 2020-12-02 13:43:11 -05:00
parent e5c710e833
commit f740032c42
2 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,7 @@ sudo "${DOCKER_CLI}" build \
-t qemu-virtiofs-static
sudo "${DOCKER_CLI}" run \
--rm \
-i \
-v "${PWD}":/share qemu-virtiofs-static \
mv "${qemu_destdir}/${qemu_virtiofs_tar}" /share/

View File

@ -56,6 +56,7 @@ sudo docker build \
-t qemu-static
sudo docker run \
--rm \
-i \
-v "${PWD}":/share qemu-static \
mv "${qemu_destdir}/${qemu_tar}" /share/