Skip to content
Discussion options

You must be logged in to vote

This was more straightforward than I thought and apparently I did not search well enough. There was a nearly complete instruction set here: #346

I am now using the following commands as hooks after adding /var/run/docker.sock to the mounted paths in backrest:

containers=$(docker ps -a | grep -v "backrest" | awk 'NR>1 {print $1}')
if [ -n "$containers" ]; then
    docker stop $containers
fi
docker start $(docker ps -a -q)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Cantello
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant