mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-30 18:16:42 +10:00
20 lines
525 B
Bash
Executable file
20 lines
525 B
Bash
Executable file
REPO_ROOT=$(dirname $(readlink -f $0))/../..
|
|
|
|
# Export desktop environment shell configuration
|
|
export $($REPO_ROOT/docker/scripts/environment.sh)
|
|
|
|
VOLUME_NAME=$1
|
|
|
|
echo Removing $VOLUME_NAME...
|
|
|
|
# Remove the volume entirely
|
|
docker volume rm $VOLUME_NAME
|
|
|
|
# Remove all files in the volume rather than removing the volume so that ownership permissions are preserved
|
|
# docker run \
|
|
# --rm \
|
|
# --user root \
|
|
# --volume $VOLUME_NAME:$VOLUME_PATH \
|
|
# --workdir $VOLUME_PATH \
|
|
# alpine:latest \
|
|
# ash -c 'rm -rf ..?* .[!.]* *'
|