Uploaded image for project: 'TEST Defect Tracking Project'
  1. TEST Defect Tracking Project
  2. TEST-1391

[containers/buildah] Containerfile `source +x` not working in podman

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      [2923200504] Upstream Reporter: Jiri Daněk
      Upstream issue status: Open
      Upstream description:

      This is a reincarnation of a previous issue

      opened because Docker has added support for symbolic permissions notation in the meantime


      Dockerfile:

      h1. {anchor:mkdir-somedir}mkdir somedir
      h1. {anchor:touch-somedirsomefiletxt}touch somedir/somefile.txt
      FROM alpine COPY \-\-chmod='ugo=rwX' ./ /

      Build with Docker

       docker \-\-version Docker version 28.0.1, build 068a01ea9

       docker build \-t perms \-\-load .
      
      \[\+\] Building 0.8s \(8/8) FINISHED docker-container:default => \[internal\] load build definition from Dockerfile 0.0s => => transferring dockerfile: 159B 0.0s => \[internal\] load metadata for docker.io/library/alpine:latest 0.6s => \[internal\] load .dockerignore 0.0s => => transferring context: 2B 0.0s => \[internal\] load build context 0.0s => => transferring context: 363B 0.0s => CACHED \[1/2\] FROM docker.io/library/alpine:latest@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c 0.0s => => resolve docker.io/library/alpine:latest@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c 0.0s => \[2/2\] COPY \-\-chmod=ugo=rwX ./ / 0.0s => exporting to docker image format 0.1s => => exporting layers 0.0s => => exporting manifest sha256:3146a557f380db9a501fee36ca17c02ca13a9ef6464a6f94cae60dbc7df77822 0.0s => => exporting config sha256:00d3546586d3d8b152f4f321cef751e5e5a82ce9dd7c0d092cf52dbb86a68a2d 0.0s => => sending tarball 0.1s => importing to docker

       docker run \-\-rm \-it perms ls \-AlFd /somedir /somedir/somefile.txt drw-rw-rw\- 2 root root 26 Mar 16 17:20 /somedir/ \-rw-rw-rw\- 1 root root 0 Mar 16 17:20 /somedir/somefile.tx

      (that capital X does not yet work with = and that's a known bug)

      With Podman

       podman \-\-version podman version 5.4.1
       podman build \-t perms . STEP 1/2: FROM alpine Resolved "alpine" as an alias \(/etc/containers/registries.conf.d/000-shortnames.conf) Trying to pull docker.io/library/alpine:latest... Getting image source signatures Copying blob sha256:6e771e15690e2fabf2332d3a3b744495411d6e0b00b2aea64419b58b0066cf81 Copying config sha256:8d591b0b7dea080ea3be9e12ae563eebf9869168ffced1cb25b2470a3d9fe15e Writing manifest to image destination STEP 2/2: COPY \-\-chmod='ugo=rwX' ./ / Error: building at STEP "COPY \-\-chmod=ugo=rwX ./ /": Error parsing chmod ugo=rwX

      Upstream URL: https://github.com/containers/buildah/issues/6066

              Unassigned Unassigned
              wscales@redhat.com Webb Scales
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: