I created an image where I used COPY command to copy a directory. The COPY command does not restore the file ownership and default all ownership to root. Is there any way to preserve ownership of the files ??
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| `USER` only affects permission of immediately following `COPY` | 1 | 11878 | June 25, 2015 | |
| Docker cp - file ownership | 0 | 2236 | June 22, 2016 | |
| USER and COPY Docker command (basic) | 2 | 2822 | April 21, 2017 | |
| Can docker cp set user id and group? | 2 | 21517 | March 18, 2021 | |
| [SOLVED] Permissions/ownership removed when moving files on shared volumes | 1 | 1859 | May 26, 2016 |