add proxy support for 'docker restart'

This commit is contained in:
Paul Bellamy committed 2015-05-19 10:34:46 +01:00
1 parent 2a120e5565
commit ca4b8e6f8e
2 files changed
+21 -1

No files matched your search

+1 -1
View File
@@ -70,7 +70,7 @@ func isCreateContainer(r *http.Request) bool {
}
func isStartContainer(r *http.Request) bool {
ok, err := regexp.MatchString("^/v[0-9\\.]*/containers/[^/]*/start$", r.URL.Path)
ok, err := regexp.MatchString("^/v[0-9\\.]*/containers/[^/]*/(re)?start$", r.URL.Path)
return err == nil && ok
}