Tweak 03

[?]
Mar 21, 2023, 5:18 PM
QSIJOFRUNUTEQWUBOBODCI2OYG2OMU4RXHZFHEZCDG5NVHBNZVVQC

Dependencies

Change contents

  • edit in 03-nix-container/podman-setup-script.nix at line 27
    [2.1723]
    [2.1723]
    fi
    if ! grep -q "^''${USER}:" /etc/subuid; then
    echo "No subuid range defined for user, consider running 'sudo usermod --add-subuids 10000-75535 ''${USER}' to allow rootless podman to work"
  • edit in 03-nix-container/flake.nix at line 62
    [3.3970][3.3970:4187]()
    if ! grep -q "^''${USER}:" /etc/subuid; then
    echo "No subuid range defined for user, consider running 'sudo usermod --add-subuids 10000-75535 ''${USER}' to allow rootless podman to work"
    fi
  • replacement in 03-nix-container/demo-inside-nix-develop.sh at line 18
    [3.6218][3.6218:6269]()
    x docker image ls | grep "wttr-delft\|^REPOSITORY"
    [3.6218]
    [3.6269]
    x "docker image ls | grep 'wttr-delft\|^REPOSITORY'"
  • replacement in 03-nix-container/demo-inside-nix-develop.sh at line 27
    [3.6492][3.6492:6555]()
    x podman ps --all --storage | grep "wttr-delft\|^CONTAINER ID"
    [3.6492]
    [3.6555]
    x "podman ps --all --storage | grep 'wttr-delft\|^CONTAINER ID'"
  • replacement in 03-nix-container/demo-inside-nix-develop.sh at line 30
    [3.6592][3.6592:6785]()
    x podman ps --all --storage | tail -n +2 | grep wttr-delft | awk "{print \$1}" | xargs podman rm
    x podman image ls | tail -n +2 | grep wttr-delft | awk "{print \$3}" | xargs podman image rm -f
    [3.6592]
    x "podman ps --all --storage | tail -n +2 | grep wttr-delft | awk '{print \$1}' | xargs podman rm"
    x "podman image ls | tail -n +2 | grep wttr-delft | awk '{print \$3}' | xargs podman image rm -f"