-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
container build via TCP gives error Content-Type: application/json is not supported. #11012
Comments
@jwhonce PTAL, especially at the linked Maven plugin issue - it's saying that we don't send Version headers on all requests. I thought I remember us fixing that - but it seems like this is still happening on the latest code? |
Is there any update here on this issue? |
@jwhonce PTAL |
@mattymo @mheon This is as designed from the docker API build documentation, From https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type :
We validate that header. After reviewing the docker code, they do not. So you may use any value for that header with docker, but only a tar file will be supported hence our validation. fabric8io/docker-maven-plugin comment asks for a PR to change their behavior. I'm going to leave this issue open for discussion. /cc @baude @rhatdan |
@mheon As of 87a78c0, the |
Endpoint /build logs an info entry when a client uses the wrong Content-Type for build payload. Given Content-Type is ignored and assumed to be "application/x-tar". Endpoint /libpod/build will fail unless "application/x-tar" or "application/tar" is given for Content-Type. "application/tar" will be logged as an info entry. Fixes containers#11012 Signed-off-by: Jhon Honce <[email protected]>
Endpoint /build logs an info entry when a client uses the wrong Content-Type for build payload. Given Content-Type is ignored and assumed to be "application/x-tar". Endpoint /libpod/build will fail unless "application/x-tar" or "application/tar" is given for Content-Type. "application/tar" will be logged as an info entry. Fixes containers#11012 Signed-off-by: Jhon Honce <[email protected]>
@mheon @jwhonce Please reopen. docker-maven-plugin error:
podman logs in debug mode:
|
What Podman version? This should definitely be fixed in 3.3. |
@mheon
I don't see any 3.3 builds on quay.io. Is the release coming soon? |
The release is complete. @TomSweeneyRedHat When will images be rebuilt? |
@mattymo the Podman v3.3.0 (or any new version) lands on quay.io after it gets set to stable on bodhi. After being set to stable, it sometimes can take up to an additional day for the CI system to note that and build the image. I just checked, and it looks like the Fedora 34 and Fedora 35 variants have gone to stable, but 33 and 32 have not yet. @cevich does the new CI job check Fedora 33? I thought that had been bumped to 34.... |
The multi-arch image build log is here: https://github.com/containers/podman/actions/workflows/multi-arch-build.yaml @TomSweeneyRedHat the Hmm, yes it seems it is pushing
|
@cevich I just checked the variant of Fedora used in the build, and it's F34. I just double-checked bodhi and Podman v3.3.0 is stable for F35 and F36. For F33 and F34, they're both still in testing. Apparently, my eyeballs failed me last night when I checked bodhi. So this is working as expected. |
Ahh, yes that makes sense given F35 isn't released yet 😁 |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I am trying to build using docker-maven-plugin pointing at podman running in service mode listening on a TCP port. It fails with a content type error. I thought this was already fixed based on the age of the comments in this other issue: fabric8io/docker-maven-plugin#1330
Steps to reproduce the issue:
Run podman in service mode
Run a docker build from another host, specifying DOCKER_HOST pointing to podman
Describe the results you received:
Relevant output from podman in debug mode:
Describe the results you expected:
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
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: