podman buildah fuse-overlayfs
cargo install -f cargo-web
$ sudo sysctl kernel.unpriviledged_userns_clone=1
Make setting permanent using systctl.d
if needed.
<user-name>:100000:65536
<user-name>:100000:65536
Set up alias:
$ alias rust-musl-builder='podman run --rm -it --userns keep-id -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder'
$ rust-musl-builder cargo build -p webapp --release
$ cargo web deploy -p frontend
$ buildah build-using-dockerfile -t <image-name> .
$ podman run -dt --rm --net host -p 8000:8000/tcp --name <container-name> <image-name>
$ podman ps -a
$ podman stop --latest
or
$ podman stop <name>
If creating a container doesn't work, because podman complains that there exists a container with the same name, and then trying to remove said container using:
$ podman rm <container-name>
doesn't work, because podman cannot find a container with that name, try:
$ podman rm --storage <container-name>