docker-prune: added network prune; docker-deploy: only create directories with absolute path name

This commit is contained in:
Marc Wäckerlin
2019-09-20 16:46:58 +02:00
parent 5e426c5740
commit f4314812db
2 changed files with 3 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ for f in $*; do
exit 1
fi
echo "... deploying ${f##*/}"
for d in $(sed -n 's/^ *source: *//p' ${f}.yaml); do
for d in $(sed -n 's,^ *source: \(/.*\),\1,p' ${f}.yaml); do
test -e $d || mkdir -p $d
done
docker stack deploy --compose-file ${f}.yaml ${f##*/}