Share feedback
Answers are generated based on the documentation.

Using Gordon via CLI

Availability: Beta
Requires: Docker Desktop 4.61.0 or later

The docker ai command provides a Terminal User Interface (TUI) for Gordon, integrating AI assistance directly into your terminal.

Basic usage

Launch the interactive TUI:

$ docker ai

This opens Gordon's terminal interface where you can type prompts, approve actions, and continue conversations with full context.

Pass a prompt directly as an argument:

$ docker ai "list my running containers"

Exit the TUI with /exit or Ctrl+C.

Working directory

The working directory sets the default context for Gordon's file operations.

Gordon uses your current shell directory as the working directory:

$ cd ~/my-project
$ docker ai

Override with -C or --working-dir:

$ docker ai -C ~/different-project

Disabling Gordon

Gordon CLI is part of Docker Desktop. To disable it, disable Gordon in Docker Desktop Settings:

  1. Open Docker Desktop Settings.
  2. Navigate to the Beta features section.
  3. Clear the Enable Docker AI option.
  4. Select Apply.

Commands

The docker ai command includes several subcommands:

Interactive mode (default):

$ docker ai

Opens the TUI for conversational interaction.

Version:

$ docker ai version

Displays the Gordon version.

Feedback:

$ docker ai feedback

Opens a feedback form in your browser.