Error to restore a container from backup
edocollado opened this issue · comments
Eduardo Collado commented
first of all i want to apologize for my bad explanation and my bad English.
When I try to restore a volume docker from backup a had the following error:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "bash": executable file not found in $PATH: unknown.
the command who I used is:
docker run --rm --volumes-from CONTAINER -v $(pwd):/backup busybox bash -c "cd CONTAINERPATH && tar xvf /backup/backup.tar --strip 1"
from the file infrastructure > docker > docker-cli.md
to solve this problem i used the following command:
docker run --rm --volumes-from CONTAINER -v $(pwd):/backup busybox /bin/sh -c "cd CONTAINERPATH && tar xvf /backup/backup.tar --strip 1"
Christian Lempa commented
Couldn't reproduce