I am trying to mount my entire docker debian container into /home/admin/main directory of my vps as a backup and migration solution but I get an error.
Command Used
sudo docker run -ditv /home/admin/main:/ debian /bin/bash
Error Received
docker: Error response from daemon: invalid volume specification: '/home/admin/main:/': invalid mount config for type "bind": invalid specification: destination can't be '/'. See 'docker run --help'.
Thanks for your help in advance
docker save
does thatdocker save
creates a tarball containing the layers in a container image; if the goal here is to create a backup of volumes, it won’t help.