pack
pack copied to clipboard
ERROR: failed to export: saving image: fetching base layers Podman on M2
Summary
When using Podman 5.0.0 on a Mac M2, the first run of pack build executes without any issues. However, attempting to run pack build a second time results in errors related to exporting the image, specifically fetching base layers from the Docker daemon.
Reproduction
Steps
- Ensure Podman 5.0.0 is installed and running on a Mac M2.
- Execute the pack build command for the first time, noting that it completes successfully.
- Attempt to run the pack build command a second time.
Current behavior
On the second run of pack build, the process fails with an error related to exporting the image. The error message indicates a failure in fetching base layers, with a specific mention of an error connecting to http://%2Fvar%2Frun%2Fdocker.sock. The exact error message is as follows:
ERROR: failed to export: saving image: fetching base layers: saving base image with ID "sha256:340f584f56f1523f8eaedc6a591381632e18a891f96187e694013b27de7ec83e" from the docker daemon: error during connect: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.41/images/get?names=sha256%3A340f584f56f1523f8eaedc6a591381632e18a891f96187e694013b27de7ec83e": EOF
ERROR: failed to build: executing lifecycle: failed with status code: 62
make: *** [docker-build] Error 1
Expected behavior
The pack build command should execute successfully on subsequent runs, similar to the first run, without encountering export or connection errors related to the Docker daemon.
Environment
pack info
Pack:
Version: 0.33.2+git-f2cffc4.build-5562
OS/Arch: darwin/arm64
Default Lifecycle Version: 0.18.5
Supported Platform APIs: 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.12
Config:
(no config file found at /Users/halil/.pack/config.toml)
podman info
host:
arch: arm64
buildahVersion: 1.35.0
cgroupControllers:
- cpuset
- cpu
- io
- memory
- pids
- rdma
- misc
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon-2.1.10-1.fc39.aarch64
path: /usr/bin/conmon
version: 'conmon version 2.1.10, commit: '
cpuUtilization:
idlePercent: 82.54
systemPercent: 2.25
userPercent: 15.21
cpus: 4
databaseBackend: sqlite
distribution:
distribution: fedora
variant: coreos
version: "39"
eventLogger: journald
freeLocks: 2044
hostname: localhost.localdomain
idMappings:
gidmap: null
uidmap: null
kernel: 6.7.7-200.fc39.aarch64
linkmode: dynamic
logDriver: journald
memFree: 12883529728
memTotal: 16729595904
networkBackend: netavark
networkBackendInfo:
backend: netavark
dns:
package: aardvark-dns-1.10.0-1.20240312103946045036.main.18.g8377c0a.fc39.aarch64
path: /usr/libexec/podman/aardvark-dns
version: aardvark-dns 1.11.0-dev
package: netavark-1.10.1-1.20240319111419242122.main.46.gcc3f35d.fc39.aarch64
path: /usr/libexec/podman/netavark
version: netavark 1.11.0-dev
ociRuntime:
name: crun
package: crun-1.14.4-1.20240302220834691516.main.10.g64ee22c.fc39.aarch64
path: /usr/bin/crun
version: |-
crun version UNKNOWN
commit: feb70bc2ab11944a6443e4f5d2eb96a22f186b80
rundir: /run/crun
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL
os: linux
pasta:
executable: /usr/bin/pasta
package: passt-0^20240220.g1e6f92b-1.fc39.aarch64
version: |
pasta 0^20240220.g1e6f92b-1.fc39.aarch64-pasta
Copyright Red Hat
GNU General Public License, version 2 or later
<https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
remoteSocket:
exists: true
path: /run/podman/podman.sock
security:
apparmorEnabled: false
capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
rootless: false
seccompEnabled: true
seccompProfilePath: /usr/share/containers/seccomp.json
selinuxEnabled: true
serviceIsRemote: true
slirp4netns:
executable: /usr/bin/slirp4netns
package: slirp4netns-1.2.2-1.fc39.aarch64
version: |-
slirp4netns version 1.2.2
commit: 0ee2d87523e906518d34a6b423271e4826f71faf
libslirp: 4.7.0
SLIRP_CONFIG_VERSION_MAX: 4
libseccomp: 2.5.3
swapFree: 0
swapTotal: 0
uptime: 0h 17m 33.00s
variant: v8
plugins:
authorization: null
log:
- k8s-file
- none
- passthrough
- journald
network:
- bridge
- macvlan
- ipvlan
volume:
- local
registries:
search:
- docker.io
store:
configFile: /usr/share/containers/storage.conf
containerStore:
number: 0
paused: 0
running: 0
stopped: 0
graphDriverName: overlay
graphOptions:
overlay.mountopt: nodev,metacopy=on
graphRoot: /var/lib/containers/storage
graphRootAllocated: 53082042368
graphRootUsed: 5692596224
graphStatus:
Backing Filesystem: xfs
Native Overlay Diff: "false"
Supports d_type: "true"
Supports shifting: "true"
Supports volatile: "true"
Using metacopy: "true"
imageCopyTmpDir: /var/tmp
imageStore:
number: 5
runRoot: /run/containers/storage
transientStore: false
volumePath: /var/lib/containers/storage/volumes
version:
APIVersion: 5.0.0-dev-8a643c243
Built: 1710720000
BuiltTime: Mon Mar 18 01:00:00 2024
GitCommit: ""
GoVersion: go1.21.8
Os: linux
OsArch: linux/arm64
Version: 5.0.0-dev-8a643c243
It can be related with Podman 5.0.0, I will try it again.
Hi @haliliceylan let us know if you managed to fix the issue on Podman side
Hi @haliliceylan let us know if you managed to fix the issue on Podman side
Hey, It was the related with Podman new major version, we can close this issue. I will open new issue on Podman repository. I will mention this issue. So still people can find the related issue.
Thanks.