theforeman / puppet-pulp

Puppet module for setting up Pulp 2 as part of Katello installation
GNU General Public License v3.0
16 stars 66 forks source link

Docker push gives me a 405 method not supported #406

Open ghost opened 4 years ago

ghost commented 4 years ago

Expected Behavior

Docker push should push an image to the configured registry

Current Behavior

Docker push gives a 405 method not supported

Possible Solution

Honestly not sure, I have looked at a number of articles around this issue, ranging from adding

RequestHeader set X-Forwarded-Proto https

to /etc/httpd/conf.d/pulp_docker.conf but that gave no effect.

Steps to Reproduce

Katello was initially installed with the following options

 --katello-enable-docker false --katello-enable-puppet false --katello-enable-ostree false

then re-enabled after

/sbin/foreman-installer --katello-enable-docker true

Create a product, then add a repo with type docker and minimal settings. then try a docker push

docker push katello.redacted.com:5000/kubernetes_docker_registry-kubernetes-prod/app-dashboard-frontend:latest
The push refers to repository [katello.redacted.com:5000/kubernetes_docker_registry-kubernetes-prod/app-dashboard-frontend]
280d4bf6bb7d: Preparing
2b516b05286b: Preparing
6ad8d562c843: Preparing
425ee8569962: Preparing
5d9ee84be1ec: Preparing
6bcd003260b2: Waiting
50644c29ef5a: Waiting
error parsing HTTP 405 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>405 Method Not Allowed</title>\n<h1>Method Not Allowed</h1>\n<p>The method is not allowed for the requested URL.</p>\n"

Context (Environment)

Running a docker push from my laptop a MAC and pushing to the server Katello 3.14 foreman 1.23