Skip to content

Commit 1535e67

Browse files
committed
Updating container state and status API in README
Signed-off-by: rajasec <[email protected]> Updating container state and status API in README Signed-off-by: rajasec <[email protected]>
1 parent e7abf30 commit 1535e67

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libcontainer/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ container.Signal(signal)
223223

224224
// update container resource constraints.
225225
container.Set(config)
226+
227+
// get current status of the container.
228+
status, err := container.Status()
229+
230+
// get current container's state information.
231+
state, err := container.State()
226232
```
227233

228234

0 commit comments

Comments
 (0)