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{}