buildah: Error while applying layer: ApplyLayer exit status 1 stdout: stderr: remount /, flags: 0x44000: permission denied

im having error running in a Privilege container (ubuntu 22.04) in kubernetes

Error while applying layer: ApplyLayer exit status 1 stdout: stderr: remount /, flags: 0x44000: permission denied

executed

buildah --tls-verify=false build -f tmp/Dockerfile

apiVersion: v1
kind: Pod
metadata:
  name: buildah002
spec:
  containers:
    - name: buildah002
      image: buildah
      imagePullPolicy: Always
      command: [ "sleep" ]
      args: [ "infinity" ]
      volumeMounts:
      - name: dockerfile
        mountPath: /tmp/Dockerfile
        subPath: Dockerfile
      securityContext:
        allowPrivilegeEscalation: yes
        runAsUser: 0
        capabilities:
          add: ["SYS_ADMIN", "NET_ADMIN", "SYS_TIME"]
  restartPolicy: Never
  volumes:
  - name: dockerfile
    configMap:
      name: dockerfile001
      
root@buildah002:/# buildah version
Version:         1.23.1
Go Version:      go1.17
Image Spec:      1.0.1
Runtime Spec:    1.0.2-dev
CNI Spec:        0.4.0
libcni Version:
image Version:   5.16.0
Git Commit:
Built:           Thu Jan  1 00:00:00 1970
OS/Arch:         linux/amd64
BuildPlatform:   linux/amd64
root@buildah002:/#

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 19 (1 by maintainers)

Most upvoted comments

Let me try this on a cluster. I’ll report back.