add inspect for images

Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Victor Vieux 2015-03-03 16:30:31 -08:00
parent fd8ff48bec
commit 426953c866
2 changed files with 3 additions and 4 deletions

View File

@ -14,7 +14,6 @@ Here are the main differences:
```
GET "/images/get"
GET "/images/{name:.*}/get"
GET "/containers/{name:.*}/attach/ws"
POST "/commit"

View File

@ -227,7 +227,7 @@ func postContainersCreate(c *context, w http.ResponseWriter, r *http.Request) {
}
// DELETE /containers/{name:.*}
func deleteContainer(c *context, w http.ResponseWriter, r *http.Request) {
func deleteContainers(c *context, w http.ResponseWriter, r *http.Request) {
if err := r.ParseForm(); err != nil {
httpError(w, err.Error(), http.StatusInternalServerError)
return
@ -398,7 +398,7 @@ func createRouter(c *context, enableCors bool) *mux.Router {
"/images/viz": notImplementedHandler,
"/images/search": proxyRandom,
"/images/get": notImplementedHandler,
"/images/{name:.*}/get": notImplementedHandler,
"/images/{name:.*}/get": proxyImage,
"/images/{name:.*}/history": proxyImage,
"/images/{name:.*}/json": proxyImage,
"/containers/ps": getContainersJSON,
@ -437,7 +437,7 @@ func createRouter(c *context, enableCors bool) *mux.Router {
"/exec/{execid:.*}/resize": proxyContainer,
},
"DELETE": {
"/containers/{name:.*}": deleteContainer,
"/containers/{name:.*}": deleteContainers,
"/images/{name:.*}": notImplementedHandler,
},
"OPTIONS": {