docker: cleanup run script

* add verbose output
This commit is contained in:
Ramon Roche 2022-08-02 07:53:05 -07:00
parent 04e08c5edb
commit 34b9dc880f
No known key found for this signature in database
GPG Key ID: 275988FAE5821713

View File

@ -1,22 +1,14 @@
#!/bin/bash
# docker hygiene
#Delete all stopped containers (including data-only containers)
#docker rm $(docker ps -a -q)
#Delete all 'untagged/dangling' (<none>) images
#docker rmi $(docker images -q -f dangling=true)
if [[ -z "${DOCKER_TAG}" ]]; then
TAG_NAME=":latest"
TAG_NAME="latest"
else
TAG_NAME=":${DOCKER_TAG}"
TAG_NAME="${DOCKER_TAG}"
fi
PX4_DOCKER_REPO="px4io/px4-dev$TAG_NAME"
PX4_DOCKER_REPO="px4io/px4-dev:$TAG_NAME"
echo $PX4_DOCKER_REPO
echo "docker_run.sh: Running [$PX4_DOCKER_REPO]"
PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
SRC_DIR=$PWD/../