Commit 9513c320 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FILE] Docker data mv script

parent e28f67d7
#!/bin/bash
sudo service docker stop
echo "{ \"data-root\": \"$1\" }" > /etc/docker/daemon.json
sudo mkdir -p $1
sudo apt update && sudo apt -y install rsync
sudo rsync -aP /var/lib/docker/ $1
sudo mv /var/lib/docker /var/lib/docker.old
sudo service docker start
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