SHARE
TWEET

Untitled

a guest Oct 21st, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # コンテナ(first_container)を停止
  2. $ docker stop first_container
  3.  
  4.  
  5. # 停止したか確認
  6. $ docker ps
  7. CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
  8.  
  9.  
  10. # -aオプションをつけると停止中のコンテナも表示される
  11. $ docker ps -a
  12. CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                     PORTS               NAMES
  13. 6d0669f6f841        nginx               "nginx -g 'daemon of…"   15 seconds ago      Exited (0) 5 seconds ago                       first_container
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top