diff --git a/api/server/server.go b/api/server/server.go index d46b77aad4ca4..7fbba7da662a5 100644 --- a/api/server/server.go +++ b/api/server/server.go @@ -83,6 +83,7 @@ func (s *Server) CreateMux(routers ...router.Router) *mux.Router { debugRouter := debug.NewRouter() for _, r := range debugRouter.Routes() { f := s.makeHTTPHandler(r.Handler(), r.Method()+" "+r.Path()) + m.Path(versionMatcher + r.Path()).Methods(r.Method()).Handler(f) m.Path(r.Path()).Methods(r.Method()).Handler(f) } diff --git a/docs/api/version-history.md b/docs/api/version-history.md index 5921d63b4f168..52f80ee973809 100644 --- a/docs/api/version-history.md +++ b/docs/api/version-history.md @@ -58,6 +58,10 @@ keywords: "API, Docker, rcli, REST, documentation" the one that sorts first is picked. * `GET /containers/json` now returns a `GwPriority` field in `NetworkSettings` for each network endpoint. +* API debug endpoints (`GET /debug/vars`, `GET /debug/pprof/`, `GET /debug/pprof/cmdline`, + `GET /debug/pprof/profile`, `GET /debug/pprof/symbol`, `GET /debug/pprof/trace`, + `GET /debug/pprof/{name}`) are now also accessible through the versioned-API + paths (`/v/`). ## v1.47 API changes