Commit eaef9e40 authored by pasden's avatar pasden 💬
Browse files

Update purge_container_files.sh

parent 5bc15fdf
#!/bin/sh
container_name="itinvent"
path_docker_containers="/volume1/docker"
CONTAINER_NAME="itinvent"
PATH_DOCKER_CONTAINERS="/volume1/docker"
container_data_path="${path_docker_containers}/${container_name}/"
CONTAINER_DATA_PATH="${PATH_DOCKER_CONTAINERS}/${CONTAINER_NAME}/"
docker stop $container_name
docker rm $container_name
APP_DIR=$(cd "$(dirname "$0")" && pwd)
rm -rf $container_data_path
sh -c "${APP_DIR}/stop_container.sh"
echo "--"
rm -rf $CONTAINER_DATA_PATH && echo "remove container folder!"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment