Access is denied while docker save Access is denied while docker save docker docker

Access is denied while docker save


Never mind, along with path I need to give my new file name that docker wanted to create and it don't happen implicitly, in my cases I gave

docker save -o ./<tar name that you wanted docker to create> <imgID>


For the similar issue but on unix:

root@linux:/opt/docker# docker save -o ./presto.tar starburstdata/prestoopen .docker_temp_359214587: permission denied

You can use different syntax to save the image as a workaround:

root@linux:/opt/docker# docker save starburstdata/presto > presto.tarroot@linux:/opt/docker# ls -lrazem 1356196-rw-r--r-- 1 root root 1388737024 maj 23 11:16 presto.tar


I workaround the problem on linux by changing the current forlder permission to 777. Make sure your current direct :

mkdir ~/docker-imagescd ~/docker-imageschmod 777 ./sudo docker save <img_id> -o ./<filename>