添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
break; }" class="min-w-0 flex-grow bg-transparent px-2 text-white outline-hidden placeholder:text-white" placeholder=Search tabindex=0>
Table of contents

Requires: Docker Desktop 4.37 and later

The Docker Desktop CLI lets you perform key operations such as starting, stopping, restarting, and updating Docker Desktop directly from the command line.

The Docker Desktop CLI provides:

  • Simplified automation for local development: Execute Docker Desktop operations more efficiently in scripts and tests.
  • An improved developer experience: Restart, quit, or reset Docker Desktop from the command line, reducing dependency on the Docker Desktop Dashboard and improving flexibility and efficiency.

Usage

docker desktop COMMAND [OPTIONS]

Commands

Command Description
start Starts Docker Desktop
stop Stops Docker Desktop
restart Restarts Docker Desktop
status Displays whether Docker Desktop is running or stopped.
engine ls Lists available engines (Windows only)
engine use Switch between Linux and Windows containers (Windows only)
update Manage Docker Desktop updates. Available for Mac only with Docker Desktop version 4.38, or all OSs with Docker Desktop version 4.39 and later.
logs Print log entries
disable Disable a feature
enable Enable a feature
version Show the Docker Desktop CLI plugin version information
module Manage Docker Desktop modules

For more details on each command, see the Docker Desktop CLI reference .