[Bug 2029523] [NEW] docker export is missing ownership information

Launchpad Bug Tracker 2029523 at bugs.launchpad.net
Thu Aug 3 20:14:59 UTC 2023


You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):

Tar archive created by docker export command is missing ownership
information (all files are owned by root) after upgrading docker.io to
20.10.25-0ubuntu1~20.04.1. Previous version 20.10.21-0ubuntu1~20.04.2
works as intended.

You can reproduce this issue by running next commands:

    docker run --name ubuntu ubuntu:20.04 ls -l /etc/shadow
    docker export ubuntu | tar tv etc/shadow

First command will show that file is owned by root:shadow, while second
will show that it is owned by UID/GID 0/0.

I've managed to find out that the issue is caused by this change: https://github.com/moby/moby/commit/721358e0cb7c10b41508f3c114baeceb2ac9ba0a#diff-12919f88ca9c04e478a6ffdf37e9a67ccdd2997afdc2e51adb1e67c53dcdbd8cL5-R5
Go 1.19 introduced unix build tag that is used by upstream now, making source code silently skipped when built with older Go version. It can be fixed by appending this tag to DOCKER_BUILDTAGS.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: docker.io 20.10.25-0ubuntu1~20.04.1
ProcVersionSignature: Ubuntu 5.15.0-72.79~20.04.1-generic 5.15.98
Uname: Linux 5.15.0-72-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.27
Architecture: amd64
CasperMD5CheckResult: skip
Date: Thu Aug  3 20:27:42 2023
InstallationDate: Installed on 2023-05-19 (76 days ago)
InstallationMedia: Ubuntu 20.04.6 LTS "Focal Fossa" - Release amd64 (20230316)
SourcePackage: docker.io-app
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: docker.io-app (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug focal patch
-- 
docker export is missing ownership information
https://bugs.launchpad.net/bugs/2029523
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list