Skip to content

Instantly share code, notes, and snippets.

@brianjo
Last active March 20, 2023 15:39
Show Gist options
  • Select an option

  • Save brianjo/42bcf7ee27dd9e1c0355f99a559ce328 to your computer and use it in GitHub Desktop.

Select an option

Save brianjo/42bcf7ee27dd9e1c0355f99a559ce328 to your computer and use it in GitHub Desktop.
# Commands I always forget.
podman build -f Dockerfile # You can use Buildfile for pure Podman.
podman images
podman tag 511541e4cde3 buck2-podman:latest
podman run -it buck2-podman bash
podman ps # copy the container id from another shell
podman commit eb1af8df2371
podman images
podman ps # grab the name from the Names column.
# Changes will persist between sessions.
podman start cranky_herschel # start if needed
podman exec -it cranky_herschel /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment