Skip to content

Failure building samples with podman #1995

@abitrolly

Description

@abitrolly

Summary

Building with podman as described here https://buildpacks.io/docs/app-developer-guide/building-on-podman/ doesn't work as expected.


Reproduction

Steps
git clone https://github.com/buildpacks/samples
export DOCKER_HOST="unix://$(podman info -f "{{.Host.RemoteSocket.Path}}")" 
podman system service -t 60 & pack build sample-app -p samples/apps/ruby-bundler/ -B cnbs/sample-builder:jammy
Current behavior
...
Copying blob fc454e27c1c6 skipped: already exists  
Copying config 5840b7958b done   | 
Writing manifest to image destination
===> ANALYZING
ERROR: failed to build: executing lifecycle: failed to create 'analyzer' container: Error response from daemon: make cli opts(): making volume mountpoint for volume /var/run/docker.sock: mkdir /var/run/docker.sock: permission denied     
Expected behavior

No errors.


Environment

pack info
Pack:
  Version:  0.32.1+git-b14250b.build-5241
  OS/Arch:  linux/amd64

Default Lifecycle Version:  0.17.2

Supported Platform APIs:  0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.12
docker info
$ podman version
Client:       Podman Engine
Version:      4.7.2
API Version:  4.7.2
Go Version:   go1.21.1
Built:        Tue Oct 31 17:32:01 2023
OS/Arch:      linux/amd64  

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/triageIssue or PR that requires contributor attention.type/bugIssue that reports an unexpected behaviour.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions