diff --git a/api/README.md b/api/README.md index c3c6f9244c..e40bc63a10 100644 --- a/api/README.md +++ b/api/README.md @@ -18,8 +18,6 @@ GET "/containers/{name:.*}/attach/ws" POST "/build" POST "/images/load" -POST "/images/{name:.*}/push" -POST "/images/{name:.*}/tag" ``` ## Endpoints which behave differently diff --git a/api/api.go b/api/api.go index c3ca8d0631..8825140998 100644 --- a/api/api.go +++ b/api/api.go @@ -511,8 +511,8 @@ func createRouter(c *context, enableCors bool) *mux.Router { "/build": notImplementedHandler, "/images/create": postImagesCreate, "/images/load": notImplementedHandler, - "/images/{name:.*}/push": notImplementedHandler, - "/images/{name:.*}/tag": notImplementedHandler, + "/images/{name:.*}/push": proxyImage, + "/images/{name:.*}/tag": proxyImage, "/containers/create": postContainersCreate, "/containers/{name:.*}/kill": proxyContainer, "/containers/{name:.*}/pause": proxyContainer,