916 B
916 B
alpine-cli
A minimal image for running Linux CLI utilities - shell scripts and similar. This is useful for both interactive purposes or as the basis for other utility images.
Quickstart
$ docker run -ti --rm ghcr.io/jswank/alpine-cli
~ $ ^D
exit
$ bin/cli --list
Available recipes:
clean # remove the persistent image
default # run
persist # run (or attach to) a perisent container {{n}}
run # run a temporary container based on {{image}}
A script, using casey/just is in bin/cli. It can be used to quickly start an ephemeral (or persistent) container:
$ bin/cli
~ $ ^D
exit
$ bin/cli persist
~ $ ls
~ $
exit
$ podman cp foo.json cli:/home/cli
$ bin/cli persist
~ $ ls
foo.json
~ $
exit
Bonus - the same script can be used to start other containers:
$ bin/cli image=alpine:edge
/ # ^D