4 ms·
This works for me on Ubuntu 22.10: $ sudo apt install podman buildah $ mkdir empty && cd empty $ cat > Containerfile <<EOF FROM alpine:3.14 RUN echo
by sagarm 4y ago
This works for me on Ubuntu 22.10:
$ sudo apt install podman buildah
$ mkdir empty && cd empty
$ cat > Containerfile <<EOF
FROM alpine:3.14
RUN echo 'echo hello podman!' > /root/hello.sh
ENTRYPOINT ["/bin/sh", "/root/hello.sh"]
EOF
$ buildah build -f Containerfile -t hello-podman .
$ podman run -it --rm localhost/hello-podman:latest
hello podman!
edit: stryan has more minimalist instructions above.
- AtlasBarfed 4y agoAH, so it must be the localhost/hello-podman:latest was the axle-wrap. I will now bitch about how everything needs to be converted to some obscure url or pseudo-url when a file path would do. This has bitten me on: - JSP tag libraries - XML xsd references (which back in the Spring XML namespace-go-nuts era was really annoying) - file:///fully/qualified/path There, I have bitched.