bugfig: docker error cannot mount file as directory
This commit is contained in:
parent
c51cd684e2
commit
b409d7fe28
|
@ -38,6 +38,8 @@ function restore {
|
|||
|
||||
$DOCKER_COMPOSE stop $tor_service
|
||||
|
||||
cp $backup_file backup.tar.gz
|
||||
|
||||
docker run --rm \
|
||||
-v $subscriber_volume:/data/subscriber \
|
||||
-v $tor_volume:/data/tor \
|
||||
|
@ -46,6 +48,8 @@ function restore {
|
|||
tar -C / -xzvf /backup/backup.tar.gz
|
||||
|
||||
$DOCKER_COMPOSE start $tor_service
|
||||
|
||||
rm backup.tar.gz
|
||||
}
|
||||
|
||||
$1
|
||||
|
|
Loading…
Reference in New Issue
Block a user