Use the Docker Desktop CLI


目录

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:

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
logs Print log entries
disable Disable a feature
enable Enable a feature
version Show the Docker Desktop CLI plugin version information
kubernetes Manage Kubernetes
diagnose Diagnose Docker Desktop and upload the diagnostics.
auth status Show the current Docker Hub authentication status. Available with version 4.95 and later.

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


版本号 #2
由 壳壳虫 创建于 2026-10-31 19:10:49 UTC
由 壳壳虫 更新于 2026-10-31 19:10:50 UTC