docker容器状态跟踪及疑惑
生活随笔
收集整理的這篇文章主要介紹了
docker容器状态跟踪及疑惑
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、
1 def status_test(): 2 container = client.containers.create("comp") 3 print ("create: ", container.status) 4 container.start() 5 print ("start: ", container.status) 6 container.pause() 7 print ("pause: ", container.status) 8 container.restart() #此處若用start會有bug 9 print ("restart: ", container.status) 10 container.stop() 11 print ("stop: ", container.status) 12 container.start() 13 print ("start: ", container.status) 14 container.kill() 15 print ("kill: ", container.status) 16 container.remove() create: created start: created pause: created restart: created stop: created start: created kill: created?
轉載于:https://www.cnblogs.com/-zyq/p/10702787.html
總結
以上是生活随笔為你收集整理的docker容器状态跟踪及疑惑的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python数据分析常用包之Scipy
- 下一篇: 用瘟疫老鼠或者希瓦纳应该怎么样压制蛮族之