]> Git — Sourcephile - gargantext.git/blob - devops/docker/bin/mvDockerData
Merge branch 'dev' into 97-dev-istex-search
[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