Repository
Quick Tips for Container Engines
Initializing search
    • Software Rolodex
    • Packaging on Arch Linux
    • Conan
    • Debian
    • Packaging Emacs Extensions
    • Package Management in JavaScript
    • Packaging Python
    • Running Android Studio under Sway:
      • Useful C Libraries
      • Booting the Kernel with QEMU
      • Building the kernel under CGroupsV2
      • Using clangd with the kernel sources
      • MacBook Quick Reference
      • Presentation Content and Workflow
      • Working with U-boot
      • Yocto
      • Building the -edge kernel for Asahi Linux
      • Packaging
      • Portage
      • Android
      • Camera Filesystems
      • Quick Tips for Container Engines
      • D-Bus
      • Finding Authoritative Name Servers for a Domain
      • Inspecting Object Files
      • Emacs
      • Building From Source
      • Fonts
      • Git
      • Loading and Configuration of Kernel Modules
      • Routing and Firewalls in the Kernel
      • Tagging Media Files
      • Neovim
      • OpenLDAP
      • PostgreSQL
      • Using RVM
      • Rust Development
      • Inspecting Tables
      • Storage Devices
      • Viewing System CA Certificates
      • tmux Tips and Tricks
      • Useful One-liners
      • Windows Quick Reference
      • Backup Procedure

    Quick Tips for Container Engines

    # Get a container's local IP address
    podman inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container
    
    # Get a list of a container's mounts
    podman inspect -f '{{range.Mounts}}{{.Source}} {{.Destination}}\n{{end}}' container
    
    # Save a network configuration to a file. This uses the network configuration that's
    # stored at /etc/cni/net.d/network_name.conflist.
    podman network inspect network_name | jq .[] > ~/network-file.json
    
    Made with Material for MkDocs