Closed ezplanet closed 10 months ago
This repo is for reporting issues in Docker Hub. I'd recommend asking in https://github.com/moby/moby.
I'm closing this issue now, but please feel free to reopen it if you think your problem is related to Docker Hub.
Problem description
When I export a container with
docker export mycontainer -o mycontainer.tar
the ownership of the files is changed to root.
For example I have a container running postfix that in turns requires to run under its own user ID, also there are executables using setgid. When I backup the container using docker export as above and then I restore the image (or tar xpf the save tar file), every file that is supposed to belong to postfix is changed to root ownership therefore container created from the restored image is thus corrupted and postfix fails to start.
The last time an export was created correctly it was 29/07/2023, after that my Ubuntu 22.04.3 LTS distribution received a few updates and I found that backups created after have the ownership of postfix files changed to root.
docker info
outputDocker Info:
Debug Information
Browser name and version:
URL: n/a
Timetamp or time range:
Public IP:
Hub Username:
Error messages (on screen or in browser console)
Screenshots of the issue (if applicable)
Task List