content/manuals/ai/gordon/_index.md
{{< summary-bar feature_name="Gordon" >}}
Gordon is an AI-powered assistant that takes action on your Docker workflows. It analyzes
your environment, proposes solutions, and executes commands with your
permission. Available in Docker Desktop and via the docker ai CLI command.
Gordon takes action to help you with Docker tasks:
Gordon proposes every action before executing. You approve what it does.
Before you begin:
[!NOTE] Gordon is enabled by default for Personal, Pro, and Team subscriptions. For Business subscriptions, an administrator must enable Gordon for the organization before users can access it.
{{< tabs >}} {{< tab name="Docker Desktop" >}}
Open Docker Desktop.
Select Gordon in the sidebar.
Select your project directory.
Type a question: "What containers are running?"
Review Gordon's proposed actions and approve.
{{< /tab >}} {{< tab name="CLI" >}}
Open your terminal and run:
$ docker ai
This opens the Terminal User Interface (TUI) for Gordon.
Type a question: "what containers are running?" and press <kbd>Enter</kbd>.
Review Gordon's proposed actions and approve by typing y.
{{< /tab >}} {{< /tabs >}}
By default, Gordon asks for approval before executing actions. You can approve individual actions or allow all actions for the current session.
Permissions reset for each session. To configure default permissions or enable auto-approve mode, see Permissions.
Container inspection:
$ docker ai "show me logs from my nginx container"
Dockerfile review:
$ docker ai "review my Dockerfile for best practices"
Image management:
$ docker ai "list my local images and their sizes"
Gordon is available with all Docker subscriptions. Usage limits vary by tier:
For details, see Usage and limits.