From 755604a2bdcaa47ad1ef827be021c9997002d311 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Tue, 7 May 2013 17:35:33 -0700 Subject: [PATCH] Fix routes in api.go --- api.go | 4 ++-- commands.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/api.go b/api.go index ea66fce9ce..b77a60af42 100644 --- a/api.go +++ b/api.go @@ -614,8 +614,8 @@ func ListenAndServe(addr string, srv *Server) error { "/images": postImages, "/images/{name:*.}/insert": postImagesInsert, "/images/{name:*.}/push": postImagesPush, - "/postBuild": postBuild, - "/postContainers": postContainers, + "/build": postBuild, + "/containers": postContainers, "/containers/{name:.*}/restart": postContainersRestart, "/containers/{name:.*}/start": postContainersStart, "/containers/{name:.*}/stop": postContainersStop, diff --git a/commands.go b/commands.go index 2ada46ff96..9a3bfaab9d 100644 --- a/commands.go +++ b/commands.go @@ -1086,7 +1086,6 @@ func CmdRun(args ...string) error { //create the container body, statusCode, err := call("POST", "/containers", *config) - //if image not found try to pull it if statusCode == 404 { v := url.Values{}