Documentación offline Docker main
por @raupulus

Using Gordon via CLI

main Documentación oficial Licencia Apache-2.0Descargado el 2026-09-15 Bundle .md (6.1 MB) ↓

En esta página

{{< summary-bar feature_name="Gordon" >}}

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 AI section.
  3. Clear the Enable Gordon 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.