I have a docker volume created in a windows system. I have made a backup to a tar file using the command below and all seeing to work. When I inspect the file using 7-zip, I can see that the files have no user assigned and root group assigned to them.
docker run --rm --volume MY_VOLUME:/data --volume %cd%:/backup ubuntu tar cvf /backup/MY_VOLUME.tar /dataI sended this file to other machine that runs a linux based system. When I try to restore my volume with the command below, I'm getting the error message: "Cannot utime: Operation not permitted".
sudo docker run --rm --volume MY_VOLUME:/data --volume $(pwd):/backup ubuntu tar xvf /backup/MY_VOLUME.tar -C /data -p --strip 1 I'm almost sure this problem is related to permission issues in the process of untar the volume. I already try to restore the volume using user and group tags (root) in docker command and in the untar command, but no sucess.
So, my question is, how can I restore my volume without this permission issues?
I'm so confused how docker manage the permissions in volumes. I'll appreciate if the answer came with some explanation about this too.
Related questions 5 Why does docker prompt "Permission denied" when backing up the data volume? 0 Docker Volumes mounting issue 0 Docker permission problems when doing volume mapping Related questions 5 Why does docker prompt "Permission denied" when backing up the data volume? 0 Docker Volumes mounting issue 0 Docker permission problems when doing volume mapping 10 Docker mounting volume. Permission denied 1 Docker loading local images permission denied while processing tar file 2 Docker permission denied with volume 6 Permission denied error when rebuilding docker image with volume 2 Docker volume backup error: Tar: MYCONTAINER_VOLUME: Cannot stat: No such file or directory 3 How to solve permission denied when mounting volume during docker run command? 1 Unable to create Dockerfile from a Docker image due to permissions denied error Load 7 more related questions Show fewer related questions Reset to default