File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,14 +85,14 @@ type Container interface {
8585 // Systemerror - System error.
8686 Restore (process * Process , criuOpts * CriuOpts ) error
8787
88- // If the Container state is RUNNING, sets the Container state to PAUSING and pauses
88+ // If the Container state is RUNNING or CREATED , sets the Container state to PAUSING and pauses
8989 // the execution of any user processes. Asynchronously, when the container finished being paused the
9090 // state is changed to PAUSED.
9191 // If the Container state is PAUSED, do nothing.
9292 //
9393 // errors:
9494 // ContainerNotExists - Container no longer exists,
95- // ContainerNotRunning - Container not running,
95+ // ContainerNotRunning - Container not running or created ,
9696 // Systemerror - System error.
9797 Pause () error
9898
@@ -445,7 +445,7 @@ func (c *linuxContainer) Pause() error {
445445 c : c ,
446446 })
447447 }
448- return newGenericError (fmt .Errorf ("container not running: %s" , status ), ContainerNotRunning )
448+ return newGenericError (fmt .Errorf ("container not running or created : %s" , status ), ContainerNotRunning )
449449}
450450
451451func (c * linuxContainer ) Resume () error {
You can’t perform that action at this time.
0 commit comments