Comment 17 for bug 2029523

Revision history for this message
Johannes Lehtinen (johannes-lehtinen-h) wrote : Re: docker export is missing ownership information

Thank you! The proposed version fixes the permission issue for our Docker build.

See below the results from three different docker.io versions.

$ dpkg -l docker.io | tail -1
hi docker.io 20.10.21-0ubuntu1~22.04.3 amd64 Linux container runtime
...build test-image...
$ docker create --name test-container test-image
$ docker export test-container | tar tv | grep install-template-files
-rwxrwxr-x 1000/1000 1080 2023-08-04 14:16 mnt/liferay/scripts/install-template-files

$ dpkg -l docker.io | tail -1
ii docker.io 20.10.25-0ubuntu1~22.04.1 amd64 Linux container runtime
...build test-image...
$ docker create --name test-container2 test-image
$ docker export test-container2 | tar tv | grep install-template-files
-rwxrwxr-x 0/0 1080 2023-08-04 14:16 mnt/liferay/scripts/install-template-files

$ dpkg -l docker.io | tail -1
ii docker.io 20.10.25-0ubuntu1~22.04.2 amd64 Linux container runtime
$ docker create --name test-container3 test-image
$ docker export test-container3 | tar tv | grep install-template-files
-rwxrwxr-x 1000/1000 1080 2023-08-04 14:16 mnt/liferay/scripts/install-template-files