podman

Veelgebruikte podman commando's.

CommandDescription
podman versionDoes podman work?!
podman run learn/tutorial echo "hello world"Run the command echo "hello world" in tutorial.
podman run learn/tutorial ps -lCheck out the processes in the container.
podman run -t -i ubuntu /bin/bashStart a shell in the ubuntu container.
podman exec -ti {HASH} /bin/bashConnect to a running container.
podman run –d {imagename}Run container in background
podman build -t {imagename} .Build a new image from the podmanfile in the current directory.
podman imagesList all your local images.
podman psList all your running containers.
podman ps -aList all your containers.
podman inspect {HASH}Show the properties of a podman container
podman stop {HASH}Stop a podman container
podman exec -ti {HASH} {COMMAND}Start an interactive session with a container and start a command (i.e. bash)
podman rmi {HASH}Remove an image.
podman rm {HASH}{NAME}
Remove a container.podman rm $(podman ps -aq)
Remove all containers.podman volume inspect podmanmail_maillogs
Find where podman has installed folder podmanmail_maillogspodman info

podman-compose

CommandDescription
podman-compose up –dStart multiple containers defined in de podman-compose.yml file
podman-compose stopStop multiple containers defined in de podman-compose.yml file
podman-compose rmRemove multiple containers defined in de podman-compose.yml file

podman Machine

CommandDescription
podman-machine lsShow the virtualboxes, also with the URL’s
podman-machine envShow the environment variables, can be used to set the environment vars (see last line)
podman-machine sshLog in to the virtual box where podman runs with a ssh connection.

Advanced

Overschrijf de entrypoint:

podman run -ti --rm --entrypoint /bin/bash forgejo.droogers.cloud/thuis/meter-lezer:latest

Error

Error with "No such image:" in podman-compose. An old cache issue.

podman-compose rm will probably solve the error.