1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

return 404 on no such containers in /attach

This commit is contained in:
Victor Vieux 2013-05-28 16:19:12 +00:00
parent 3d8da80611
commit e5fa4a4956

4
api.go
View file

@ -541,6 +541,10 @@ func postContainersAttach(srv *Server, version float64, w http.ResponseWriter, r
}
name := vars["name"]
if _, err := srv.ContainerInspect(name); err != nil {
return err
}
in, out, err := hijackServer(w)
if err != nil {
return err