Guillaume J. Charmes 12 лет назад
Родитель
Сommit
755604a2bd
2 измененных файлов с 2 добавлено и 3 удалено
  1. 2 2
      api.go
  2. 0 1
      commands.go

+ 2 - 2
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,

+ 0 - 1
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{}