Veelgebruikte podman commando's.
| Command | Description |
|---|---|
| podman version | Does podman work?! |
| podman run learn/tutorial echo "hello world" | Run the command echo "hello world" in tutorial. |
| podman run learn/tutorial ps -l | Check out the processes in the container. |
| podman run -t -i ubuntu /bin/bash | Start a shell in the ubuntu container. |
| podman exec -ti {HASH} /bin/bash | Connect 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 images | List all your local images. |
| podman ps | List all your running containers. |
| podman ps -a | List 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_maillogs | podman info |
| Command | Description |
|---|---|
| podman-compose up –d | Start multiple containers defined in de podman-compose.yml file |
| podman-compose stop | Stop multiple containers defined in de podman-compose.yml file |
| podman-compose rm | Remove multiple containers defined in de podman-compose.yml file |
| Command | Description |
|---|---|
| podman-machine ls | Show the virtualboxes, also with the URL’s |
| podman-machine env | Show the environment variables, can be used to set the environment vars (see last line) |
| podman-machine ssh | Log in to the virtual box where podman runs with a ssh connection. |
Overschrijf de entrypoint:
podman run -ti --rm --entrypoint /bin/bash forgejo.droogers.cloud/thuis/meter-lezer:latest
Error with "No such image:" in podman-compose. An old cache issue.
podman-compose rm will probably solve the error.