You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lntop/docker/clean.sh

12 lines
333 B
Bash

#!/usr/bin/env bash
set -e -o pipefail
# stop and remove all containers from lntop image (see https://stackoverflow.com/a/32074098/84283)
CONTAINERS=$(docker ps -a -q --filter ancestor=lntop --format="{{.ID}}")
if [[ -n "$CONTAINERS" ]]; then
docker rm $(docker stop ${CONTAINERS})
fi
# clean source code stage
rm -rf lntop/_src