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

Artem Leshchev 2029523 at bugs.launchpad.net
Fri Aug 4 08:57:48 UTC 2023


Oh, I haven't noticed Go 1.20 is available in Focal now. This is a
debdiff with using Go 1.20 for build, it builds successfully in pbuilder
and works as intended.

** Patch added: "2-20.10.25-0ubuntu1~20.04.2.debdiff"
   https://bugs.launchpad.net/ubuntu/+source/docker.io-app/+bug/2029523/+attachment/5690278/+files/2-20.10.25-0ubuntu1~20.04.2.debdiff

-- 
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
Status in docker.io-app source package in Focal:
  New
Status in docker.io-app source package in Jammy:
  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