Daily Shaarli

All links of one day in a single page.

October 11, 2024

Commands — Podman documentation
  • Podman (Pod Manager) Global Options, Environment Variables, Exit Codes, Configuration Files, and more
  • attach Attach to a running container
  • auto-update Auto update containers according to their auto-update policy
  • build Build an image using instructions from Containerfiles
  • commit Create new image based on the changed container
  • container Manage containers
  • cp Copy files/folders between a container and the local filesystem
  • create Create but do not start a container
  • diff Display the changes to the object’s file system
  • events Show podman system events
  • exec Run a process in a running container
  • export Export container’s filesystem contents as a tar archive
  • farm Farm out builds to remote machines
  • generate Generate structured data based on containers, pods or volumes
  • healthcheck Manage health checks on containers
  • history Show history of a specified image
  • image Manage images
  • images List images in local storage
  • import Import a tarball to create a filesystem image
  • info Display podman system information
  • init Initialize one or more containers
  • inspect Display the configuration of object denoted by ID
  • kill Kill one or more running containers with a specific signal
  • kube Play containers, pods or volumes from a structured file
  • load Load image(s) from a tar archive
  • login Log in to a container registry
  • logout Log out of a container registry
  • logs Fetch the logs of one or more containers
  • machine Manage a virtual machine
  • manifest Manipulate manifest lists and image indexes*
  • mount Mount a working container’s root filesystem
  • network Manage networks
  • pause Pause all the processes in one or more containers
  • pod Manage pods
  • port List port mappings or a specific mapping for the container
  • ps List containers
  • pull Pull an image from a registry
  • push Push an image to a specified destination
  • rename Rename an existing container
  • restart Restart one or more containers
  • rm Remove one or more containers
  • rmi Remove one or more images from local storage
  • run Run a command in a new container
  • save Save image(s) to an archive
  • search Search registry for image
  • secret Manage secrets
  • start Start one or more containers
  • stats Display a live stream of container resource usage statistics
  • stop Stop one or more containers
  • system Manage podman
  • tag Add an additional name to a local image
  • top Display the running processes of a container
  • unmount Unmount working container’s root filesystem
  • unpause Unpause the processes in one or more containers
  • unshare Run a command in a modified user namespace
  • untag Remove a name from a local image
  • update Update an existing container
  • version Display the Podman version information
  • volume Manage volumes
  • wait Block on one or more containers

HereDoc is here for Containerfiles in Podman! 
thumbnail

HereDoc notation has been used for a while now in Bash, SQL, PHP, and other scripting languages. It allows a very long command to be broken down into several more readable lines while still being treated as a single command.

  • Buildah v1.35
  • Podman v5.0
FROM docker.io/redhat/ubi9-minimal as builder

RUN <<EOF
microdnf update
microdnf -y install gcc 
microdnf -y install glibc-static
microdnf -y install procps-ng
EOF

Buildah baut meine Container-Images | My-IT-Brain

Dieser Artikel gibt meine Motivation für den Bau von Container-Images und die Vorgehensweise wieder und zeigt, wie ich mit Buildah meine OCI-kompatiblen Container-Images erstelle.

Es handelt sich dabei mehr um einen Erfahrungsbericht als ein Tutorial und ich erhebe keinen Anspruch auf Vollständigkeit. Das behandelte Beispiel ist jedoch zum Einstieg und zur Nachahmung für all jene geeignet, die Container ausführen können und diese gerne ohne Verwendung von Containerfiles bauen möchten.

podmanbuildah

strubbl/wallabag-logseq: sync wallabag articles to logseq - Codeberg.org
thumbnail

Opinionated wallabag article exporter to markdown format for logseq
The following requirements were made.

  • all exported articles go into one markdown file
  • only annotated wallabag articles are exported
  • dates are automatically linked
  • in the article markdown template empty newlines are removed to fulfill Logseq's markdown
  • cache all exported articles and when syncing again use the wallabag's API support for since queries
  • new articles, which are not yet cached, are only appended at the end of the markdown file
  • ATM, changed articles are newly appended to the file
    • thus, creating duplicates
    • this was done to preserve articles being changed in Logseq only
    • of course a manual merge is needed if you changed that article in Logseq only and it was changed afterwards in wallabag
    • if it was not changed in Logseq, the old entry can of course be deleted (manually only)
Buildah and Podman Relationship | Podman

Kubernetes installations can be complex with multiple runtime dependencies and runtime engines. CRI-O was created to provide a lightweight runtime for Kubernetes which adds an abstraction layer between the cluster and the runtime that allows for various OCI runtime technologies. However you still have the problem of daemon dependencies in your cluster for builds - I.e. if you are using the cluster for builds you still need a Docker daemon.

Enter Buildah. Buildah allows you to have a Kubernetes cluster without any Docker daemon for both runtime and builds. Excellent. But what if things go wrong? What if you want to do troubleshooting or debugging of containers in your cluster? Buildah isn’t really built for that, what you need is a client tool for working with containers and the one that comes to mind is Docker CLI - but then you’re back to using the daemon.

podmanbuildah

GitHub - splitbrain/clipscreen: Mirror a portion of your screen to a virtual monitor for easier screen sharing.
thumbnail

clipscreen is a simple application that creates a virtual monitor that mirrors a portion of your screen. A green rectangle highlights the specified area.

Why's this useful? You can use any screen sharing tool (Google Meet, Microsoft Teams, Jitsi Meet, etc.) to share the virtual monitor instead of your entire screen. No need to share individual windows and having to switch between them, just move any window you wannt to share into the green border.

An Excruciatingly Detailed Guide To SSH (But Only The Things I Actually Find Useful)
thumbnail

We’ve all seen these great diagrams of how SSH port forwarding works but if your brain is anything like mine, these diagrams leave you with a lot of unanswered questions. If you’re on a red team, understanding how to traverse a network better than the people who designed it gives you immense power to do evil things. SSH is such a powerful tool but sometimes the syntax and other concepts can get in the way of us accomplishing our goals. In an effort to do more evil things in a timely fashion I’ve put together a massive list of SSH things that I find useful. You can read it too, but if I’m being honest, this is mostly for me. I’ve learned that I really don’t grasp concepts unless I have hands on keyboard time doing them. This post is essentially just everything I learned while doing so. Also I should point out that in all of these examples I am using a websever to demonstrate port forwarding but this can be done with almost any service including RDP, SQL, etc.