podman container ls
podman container kill <container id>
- Building the image with a tag bcdc:smk
podman image build -t bcdc:smk .
- Run the image and log into it, (not all images come with /bin/bash, example with alpine you have to add the line:
RUN apk add bash
- run the image and log into it for trouble shooting...
podman run -it -p 8080:8080 bcdc:smk /bin/bash
podman run -it -p 8080:8080 bcdc:smk sh
- override the entrypoint
podman run -it --entrypoint /bin/sh bcdc:smk
- pull / run image from docker hub
podman pull docker.io/guylafleur/gdal-util
podman run -it gdal-util /bin/bash
- mount a local volume
mounts the directory: /home/lafleur/greatest_plays/stats
to the directory in the container: /data
podman run --env-file=.env -v /home/lafleur/greatest_plays/stats:/data -p 8080:8080 listener:listener`
- cleanup all images
podman rmi -a -f
- systematically clean everything
podman system prune -a
- list running containers
podman ps -a
- stop a container
podman stop <image id>
- delete a specific container
podman rm <image id>
#0 5.351 WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.19/main: temporary error (try again later)
updating the docker dns settings solved this for me
updated the dns setting for my docker install
edit the file: /etc/docker/daemon.json
with,
{
"dns": ["8.8.8.8"]
}
- redhat images: https://catalog.redhat.com/software/containers/search?p=1
- dockerhub: https://hub.docker.com/repositories