1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-12-04 23:40:32 +00:00

Use --pull newer

This commit is contained in:
Mo 2022-10-29 11:24:09 +02:00
parent 85964425b0
commit 8f3383c037

View file

@ -31,14 +31,14 @@ if status is-interactive
## Podman
set -l sagemath_image docker.io/sagemath/sagemath:latest
abbr -ag sage "podman pull $sagemath_image; podman run -it --rm $sagemath_image"
abbr -ag sage-jupyter "podman pull $sagemath_image; podman run -it --rm -p8888:8888 $sagemath_image sage-jupyter"
abbr -ag sage "podman run --pull newer -it --rm $sagemath_image"
abbr -ag sage-jupyter "podman run --pull newer -it --rm -p8888:8888 $sagemath_image sage-jupyter"
set -l fedora_image registry.fedoraproject.org/fedora:(rpm -E %fedora)
abbr -ag fedora "podman pull $fedora_image; podman run -it --rm $fedora_image"
abbr -ag fedora "podman run --pull newer -it --rm $fedora_image"
set -l asciidoctor_image docker.io/asciidoctor/docker-asciidoctor:latest
abbr -ag adoc "podman pull $asciidoctor_image; podman run -it --rm -v (pwd):/documents/:Z $asciidoctor_image"
abbr -ag adoc "podman run --pull newer -it --rm -v (pwd):/documents/:Z $asciidoctor_image"
abbr -ag pps "podman ps --format '{{.Names}}'"