Relative Content

Tag Archive for dockerdocker-volume

Docker image stopped persisting data from volume

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.

How can I configure docker container permissions that persist without a start script?

We have applications running in docker containers via compose. I mounted the config files and log folders via compose volumes; the applications don’t have permissions for these folders, even if I set the permissions on the host machine to correspond to the UID or GID of the user the container uses. When I check the permissions of those folders from within the container, they’re always owned by nobody and I can’t seem to figure out how to control these permissions in docker or have the permissions passed from the host to docker. Exec’ing into the container to update permissions is something I’d rather avoid for security reasons.