mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-21 13:18:00 +00:00
Fix routes in api.go
This commit is contained in:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user