containers / containers/podman-compose

Error: inspecting object: stomppip_stompwheel: image not known

Open
#631 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
6.2k
Forks
622
PR merge metrics
No merged PRs in 30d

Description

**To Reproduce**
Make a folder named `stomppip` with a `compose.yml` and a `Containerfile`.\
This is the `compose.yml`:
```
---
version: "3"

services:
stompwheel:
build: .

```

This is the `Containerfile`:
```
FROM alpine

RUN apk update
RUN apk add python3
RUN apk add py3-pip
RUN apk add vim
```

Run this command:
```
podman-compose up
```

**Expected behavior**
Not getting an error message when using `podman-compose up`.\
`podman-compose` should not look for an image and give me an error, when I want to **build** an image.

**Actual behavior**
```
['podman', '--version', '']
using podman version: 4.3.1
** excluding: set()
['podman', 'inspect', '-t', 'image', '-f', '{{.Id}}', 'stomppip_stompwheel']
Error: inspecting object: stomppip_stompwheel: image not known
podman build -t stomppip_stompwheel -f ./Containerfile .
STEP 1/6: FROM alpine
STEP 2/6: RUN apk update
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
^CTraceback (most recent call last):
```

**Output**

```
$ podman-compose version
['podman', '--version', '']
using podman version: 4.3.1
podman-composer version 1.0.3
podman --version
podman version 4.3.1
exit code: 0
```
**Environment:**
- OS: Fedora 37
- podman version: 4.3.1
- podman compose version: podman-composer version 1.0.3

Contributor guide

Open the contributing guide

Research direction

Start with the compose.yml and Containerfile in the reproduction, then run podman-compose up while tracing the image inspection and build path. Check how the missing stomppip_stompwheel image is reported and confirm that the completed behavior builds the image without an erroneous error message.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.