Fix routes in api.go

This commit is contained in:
Guillaume J. Charmes 2013-05-07 17:35:33 -07:00
parent 891c5202ea
commit 755604a2bd
2 changed files with 2 additions and 3 deletions

4
api.go
View file

@ -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,

View file

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