Skip to content

Commit 8b9b444

Browse files
Merge pull request #1157 from rajasec/readme-containerstate
Updating container state and status API in README
2 parents 4c7b8d6 + 1535e67 commit 8b9b444

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)