Podman API doesn't accept "application/tar" content-type for "docker-compose build" #7185
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Running
docker-compose build <service-name>
where the service is built from a Dockerfile doesn't work, and yields aFailed to parse query parameter 'Content-Type': "application/tar": Content-Type: application/tar is not supported. Should be "application/x-tar"
error.Note: there is another issue where the network is not created successfully so as a workaround I ran
docker-compose network create test_default
before running the commands below.Steps to reproduce the issue:
Start podman service with
podman system service -t 0 tcp:0.0.0.0:8080 &
Run
export DOCKER_HOST=localhost:8080
so that docker-compose will talk with the Podman API service.Create Dockerfile, for example:
docker-compose.yml
:docker-compose build service-name
Describe the results you received:
Describe the results you expected:
Image is built successfully:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
export DOCKER_HOST=localhost:8080
so that docker-compose will talk with the Podman API service.The text was updated successfully, but these errors were encountered: