title: Move docker volume to different partition
body: <p>I have a server where I run some containers with volumes. All my volumes are in <code>/var/lib/docker/volumes/</code> because docker is managing it. I use docker-compose to start my containers. </p>
  
  <p>Recently, I tried to stop one of my container but it was impossible : </p>
  
  <pre><code>$ docker-compose down
  [17849] INTERNAL ERROR: cannot create temporary directory!
  </code></pre>
  
  <p>So, I checked how the data is mounted on the server : </p>
  
  <pre><code>$ df -h
  Filesystem      Size  Used Avail Use% Mounted on
  udev            7,8G     0  7,8G   0% /dev
  tmpfs           1,6G  1,9M  1,6G   1% /run
  /dev/md3         20G   19G     0 100% /
  tmpfs           7,9G     0  7,9G   0% /dev/shm
  tmpfs           5,0M     0  5,0M   0% /run/lock
  tmpfs           7,9G     0  7,9G   0% /sys/fs/cgroup
  /dev/md2        487M  147M  311M  33% /boot
  /dev/md4        1,8T  1,7G  1,7T   1% /home
  tmpfs           1,6G     0  1,6G   0% /run/user/1000
  </code></pre>
  
  <p>As you can see, the <code>/</code> is only 20Go, so it is full and I can't stop my containers using docker-compose.</p>
  
  <p>My questions are : </p>
  
  <ul>
  <li><p>There is a simple solution to increase the available space in the
  <code>/</code>, using <code>/dev/md4</code> ?</p></li>
  <li><p>Or can I move volumes to another place without losing data ?</p></li>
  </ul>