I have a big issue debuging a docker issue. I have a nest js backend which was working fine with docker up until latest commit. After I installed some packages, the docker volume stopped working.The volume is persisting uploaded photos to server, so jpg and png files.
ps: docker volumes are mounted exactly the same way, I inspected the container and it is like this.
"Mounts": [
{
"Type": "volume",
"Name": "prod-vol",
"Source": "/var/lib/docker/volumes/prod-vol/_data",
"Destination": "/public",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
}
],
this is my docker run command.
sudo docker run --name prod-ver1.6.7 -itd --env-file .env -p 3000:3000 -v prod-vol:/public --restart=always tik:1.6.7
since I did not change my dockerfile I am not posting it here. its a multistage dockerfile. I’m not using compose.
Thanks in advance for the help.
I did a git reset to previous commit but again Im seeing the issue! I tested on 2 different servers, it works with previously created image but not the new one!!
Behnoud Mostafaie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2