9 lines
248 B
Bash
9 lines
248 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
here="$(realpath "$(dirname "$0")")"
|
||
|
cd "$here"
|
||
|
|
||
|
mkdir -p "./saved"
|
||
|
# echo -n ... | xargs -d " " ... if more than one image
|
||
|
echo "dungeonsandexploits" | xargs -I {} -n 1 sh -c "docker save '{}:latest' | xz > './saved/{}.tar.xz'"
|