Using Gordon via CLI
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:
- Open Docker Desktop Settings.
- Navigate to the Beta features section.
- Clear the Enable Docker AI option.
- 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.