CircleCI-Public / circleci-cli

Use CircleCI from the command line
https://circleci-public.github.io/circleci-cli/
MIT License
407 stars 232 forks source link

Cannot execute local jobs using podman #774

Open drjeep opened 2 years ago

drjeep commented 2 years ago

Meta:

CircleCI CLI Version: 0.1.20856+991bd2a (release)

Podman Version:

Version:      3.4.7
API Version:  3.4.7
Go Version:   go1.16.15
Built:        Mon Jul 11 00:35:25 2022
OS/Arch:      linux/amd64

Operating System: Fedora Workstation 35

CircleCI CLI Diagnostic:

Debugger mode: false
Config found: /home/drjeep/.circleci/cli.yml
API host: https://circleci.com
API endpoint: graphql-unstable
OK, got a token.
Trying an introspection query on API... 
Ok.
Hello, Gerhard Kotze.

Current behavior:

When running circleci local execute --job lint I get the following error

Fetching latest build environment...
Docker image digest: sha256:4921f09b81624dc25d5d72952322da5e503c641c36986404d4e12f60625b6f7e
Resolving "circleci/picard" using unqualified-search registries (/home/drjeep/.config/containers/registries.conf)
Trying to pull docker.io/circleci/picard@sha256:4921f09b81624dc25d5d72952322da5e503c641c36986404d4e12f60625b6f7e...
Error: initializing source docker://circleci/picard@sha256:4921f09b81624dc25d5d72952322da5e503c641c36986404d4e12f60625b6f7e: reading manifest sha256:4921f09b81624dc25d5d72952322da5e503c641c36986404d4e12f60625b6f7e in docker.io/circleci/picard: received unexpected HTTP status: 500 Internal Server Error

Expected behavior:

Image should be pulled from docker.io and job executed locally.

When did this begin / Was this previously working?:

When I started using podman as a drop-in replacement for docker

Additional Information:

Jobs are executed successfully using official docker running as root. podman is running in rootless mode and I'm using it successfully as a docker replacement for day to day operations, including docker-compose.

I understand that this is not necessarily a circleci issue, but would appreciate any guidance to debug the issue further and/or log an upstream issue for podman if required.

abdelDriowya commented 1 year ago

Hi @drjeep Currently Podman is not support; 
I will check internally with the team, and get back to you asap

iuliana commented 5 months ago

Podman can be used to create compact OCI multi-arch images, I am looking into building this type of images using CircleCI. Any idea when Podman will be supported?