Description
For image push operation, Azure Container Registry returns the upload location in the format of {path}?{query}, eg, /v2/img/test/blobs/uploads/e10c4f3b-c7a0-4dd1-806f-f79cff5b30a8?_nouploadcache=false&_state=y4CXAeAQ1WvtVnfSbDaawC4mzRHGTOvNe8S5DVAcug17Ik5hbWUiOiJpbWcvdGVzdCIsIlVVSUQiOiJlMTBjNGYzYi1jN2EwLTRkZDEtODA2Zi1mNzljZmY1YjMwYTgiLCJPZmZzZXQiOjAsIlN0YXJ0ZWRBdCI6IjIwMTgtMDYtMDVUMTc6Mjc6MTcuMTk4NDE3MjE5WiJ9
Current docker/pusher implementation assumes the location is path if it doesn't have host.
Therefore push image request to ACR fails as 404 error.
Description
For image push operation, Azure Container Registry returns the upload location in the format of
{path}?{query}, eg,/v2/img/test/blobs/uploads/e10c4f3b-c7a0-4dd1-806f-f79cff5b30a8?_nouploadcache=false&_state=y4CXAeAQ1WvtVnfSbDaawC4mzRHGTOvNe8S5DVAcug17Ik5hbWUiOiJpbWcvdGVzdCIsIlVVSUQiOiJlMTBjNGYzYi1jN2EwLTRkZDEtODA2Zi1mNzljZmY1YjMwYTgiLCJPZmZzZXQiOjAsIlN0YXJ0ZWRBdCI6IjIwMTgtMDYtMDVUMTc6Mjc6MTcuMTk4NDE3MjE5WiJ9Current docker/pusher implementation assumes the location is path if it doesn't have host.
containerd/remotes/docker/pusher.go
Line 159 in 081b2d6
Therefore push image request to ACR fails as 404 error.