Let podman/docker remove containers after running

This commit is contained in:
Daniel Lublin 2023-01-27 10:10:18 +01:00
parent f020495695
commit b184c0a94d
No known key found for this signature in database
GPG Key ID: 75BD0FEB8D3E7830

View File

@ -10,13 +10,13 @@ build:
docker build -t tkey-builder .
run:
docker run --mount type=bind,source="`pwd`/../",target=/build -w /build -it tkey-builder /usr/bin/bash
docker run --rm --mount type=bind,source="`pwd`/../",target=/build -w /build -it tkey-builder /usr/bin/bash
podman-build:
podman build -t tkey-builder .
podman-run:
podman run --mount type=bind,source="`pwd`/../",target=/build -w /build -it tkey-builder /usr/bin/bash
podman run --rm --mount type=bind,source="`pwd`/../",target=/build -w /build -it tkey-builder /usr/bin/bash
podman-run-make:
podman run --mount type=bind,source="`pwd`/../hw/application_fpga",target=/build -w /build -it tkey-builder make
podman run --rm --mount type=bind,source="`pwd`/../hw/application_fpga",target=/build -w /build -it tkey-builder make