]> Git — Sourcephile - gargantext.git/blob - devops/docker/bin/mvDockerData
Merge remote-tracking branch 'origin/dev-phylo' into dev-merge
[gargantext.git] / devops / docker / bin / mvDockerData
1 #!/bin/bash
2
3
4 sudo service docker stop
5
6 echo "{ \"data-root\": \"$1\" }" > /etc/docker/daemon.json
7
8 sudo mkdir -p $1
9 sudo apt update && sudo apt -y install rsync
10 sudo rsync -aP /var/lib/docker/ $1
11 sudo mv /var/lib/docker /var/lib/docker.old
12
13 sudo service docker start
14
15