• pause
  • unpause

    pause

    • 用法
    1. Usage: docker pause [OPTIONS] CONTAINER [CONTAINER...]
    2. Pause all processes within a container
    3. --help=false Print usage
    • 例子
    1. $ sudo docker pauese hopeful_feynman
    2. hopeful_feynman
    3. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
    4. c9a12157fed7 centos "/bin/bash" 9 minutes ago Up 9 minutes (Paused) hopeful_feynman

    使容器内进程暂停

    unpause

    • 用法
    1. Usage: docker unpause [OPTIONS] CONTAINER [CONTAINER...]
    2. Unpause all processes within a container
    3. --help=false Print usage
    • 例子
    1. $ sudo docker pauese hopeful_feynman
    2. hopeful_feynman

    恢复暂停