ChristianLempa / cheat-sheets

This is my personal knowledge-base. Here you'll find code-snippets, technical documentation, and command reference for various tools, and technologies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error to restore a container from backup

edocollado opened this issue · comments

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"

Couldn't reproduce