• start
  • stop
  • restart

    start

    • 用法
    1. Usage: docker start [OPTIONS] CONTAINER [CONTAINER...]
    2. Start one or more stopped containers
    3. -a, --attach=false Attach STDOUT/STDERR and forward signals
    4. --help=false Print usage
    5. -i, --interactive=false Attach container's STDIN

    stop

    • 用法
    1. Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
    2. Stop a running container by sending SIGTERM and then SIGKILL after a
    3. grace period
    4. --help=false Print usage
    5. -t, --time=10 Seconds to wait for stop before killing it

    restart

    • 用法
    1. Usage: docker restart [OPTIONS] CONTAINER [CONTAINER...]
    2. Restart a running container
    3. --help=false Print usage
    4. -t, --time=10 Seconds to wait for stop before killing the container