mirror of https://github.com/containers/podman.git
commit
61068649fa
|
@ -305,6 +305,7 @@ func Restore(w http.ResponseWriter, r *http.Request) {
|
||||||
PrintStats bool `schema:"printStats"`
|
PrintStats bool `schema:"printStats"`
|
||||||
FileLocks bool `schema:"fileLocks"`
|
FileLocks bool `schema:"fileLocks"`
|
||||||
PublishPorts string `schema:"publishPorts"`
|
PublishPorts string `schema:"publishPorts"`
|
||||||
|
Pod string `schema:"pod"`
|
||||||
}{
|
}{
|
||||||
// override any golang type defaults
|
// override any golang type defaults
|
||||||
}
|
}
|
||||||
|
@ -324,6 +325,7 @@ func Restore(w http.ResponseWriter, r *http.Request) {
|
||||||
PrintStats: query.PrintStats,
|
PrintStats: query.PrintStats,
|
||||||
FileLocks: query.FileLocks,
|
FileLocks: query.FileLocks,
|
||||||
PublishPorts: strings.Fields(query.PublishPorts),
|
PublishPorts: strings.Fields(query.PublishPorts),
|
||||||
|
Pod: query.Pod,
|
||||||
}
|
}
|
||||||
|
|
||||||
var names []string
|
var names []string
|
||||||
|
|
|
@ -1516,6 +1516,10 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
||||||
// name: printStats
|
// name: printStats
|
||||||
// type: boolean
|
// type: boolean
|
||||||
// description: add restore statistics to the returned RestoreReport
|
// description: add restore statistics to the returned RestoreReport
|
||||||
|
// - in: query
|
||||||
|
// name: pod
|
||||||
|
// type: string
|
||||||
|
// description: pod to restore into
|
||||||
// produces:
|
// produces:
|
||||||
// - application/json
|
// - application/json
|
||||||
// responses:
|
// responses:
|
||||||
|
|
|
@ -1170,10 +1170,6 @@ var _ = Describe("Podman checkpoint", func() {
|
||||||
share := share // copy into local scope, for use inside function
|
share := share // copy into local scope, for use inside function
|
||||||
|
|
||||||
It(testName, func() {
|
It(testName, func() {
|
||||||
if podmanTest.Host.Distribution == "ubuntu" && IsRemote() {
|
|
||||||
Skip("FIXME: #15018. Cannot restore --pod under cgroupsV1 and remote")
|
|
||||||
}
|
|
||||||
|
|
||||||
if !criu.CheckForCriu(criu.PodCriuVersion) {
|
if !criu.CheckForCriu(criu.PodCriuVersion) {
|
||||||
Skip("CRIU is missing or too old.")
|
Skip("CRIU is missing or too old.")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue