Mounting Entire Container into a Directory
0
votes
0
answers
414
views
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
Asked by zakadmin
(63 rep)
Jul 4, 2022, 07:53 PM