Fix routes in api.go
This commit is contained in:
parent
891c5202ea
commit
755604a2bd
2 changed files with 2 additions and 3 deletions
4
api.go
4
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,
|
||||
|
|
|
@ -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{}
|
||||
|
|
Loading…
Reference in a new issue