[Bug 2029523] Re: docker export is missing ownership information

Ubuntu Foundations Team Bug Bot 2029523 at bugs.launchpad.net
Thu Aug 3 20:15:00 UTC 2023


The attachment "1-20.10.25-0ubuntu1~20.04.2.debdiff" seems to be a
debdiff.  The ubuntu-sponsors team has been subscribed to the bug report
so that they can review and hopefully sponsor the debdiff.  If the
attachment isn't a patch, please remove the "patch" flag from the
attachment, remove the "patch" tag, and if you are member of the
~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issue please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2029523

Title:
  docker export is missing ownership information

Status in docker.io-app package in Ubuntu:
  New

Bug description:
  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/docker.io-app/+bug/2029523/+subscriptions




More information about the Ubuntu-sponsors mailing list