1
1
---
2
2
title : Ask Gordon
3
- description : Learn how to streamline your workflow with Docker's AI-powered assistant.
3
+ description : Streamline your workflow with Docker's AI-powered assistant in Docker Desktop and CLI .
4
4
weight : 10
5
5
params :
6
6
sidebar :
7
7
badge :
8
8
color : blue
9
9
text : Beta
10
10
group : AI
11
- aliases :
11
+ aliases :
12
12
- /desktop/features/gordon/
13
13
---
14
14
@@ -37,16 +37,15 @@ Ask Gordon is not enabled by default, and is not
37
37
production-ready. You may also encounter the term "Docker AI" as a broader
38
38
reference to this technology.
39
39
40
- > [ !NOTE]
40
+ > [ !NOTE]
41
41
>
42
42
> Ask Gordon is powered by Large Language Models (LLMs). Like all
43
43
> LLM-based tools, its responses may sometimes be inaccurate. Always verify the
44
44
> information provided.
45
45
46
46
### What data does Gordon access?
47
47
48
- When you use Ask Gordon, the data it accesses depends on the context of your
49
- query:
48
+ When you use Ask Gordon, the data it accesses depends on your query:
50
49
51
50
- Local files: If you use the ` docker ai ` command, Ask Gordon can access files
52
51
and directories in the current working directory where the command is
@@ -57,19 +56,18 @@ query:
57
56
registry.
58
57
59
58
To provide accurate responses, Ask Gordon may send relevant files, directories,
60
- or image metadata to the Gordon backend along with your query. This data
61
- transfer occurs over the network but is never stored persistently or shared with
62
- third parties. It is used exclusively to process your request and formulate a
63
- response. For more information about privacy terms and conditions for Docker AI,
64
- review [ Gordon's Supplemental
65
- Terms] ( https://www.docker.com/legal/docker-ai-supplemental-terms/ ) .
59
+ or image metadata to the Gordon backend with your query. This data transfer
60
+ occurs over the network but is never stored persistently or shared with third
61
+ parties. It is used only to process your request and formulate a response. For
62
+ details about privacy terms and conditions for Docker AI, review [ Gordon's
63
+ Supplemental Terms] ( https://www.docker.com/legal/docker-ai-supplemental-terms/ ) .
66
64
67
65
All data transferred is encrypted in transit.
68
66
69
67
### How your data is collected and used
70
68
71
69
Docker collects anonymized data from your interactions with Ask Gordon to
72
- enhance the service. This includes the following :
70
+ improve the service. This includes:
73
71
74
72
- Your queries: Questions you ask Gordon.
75
73
- Responses: Answers provided by Gordon.
@@ -81,45 +79,44 @@ To ensure privacy and security:
81
79
- Docker does not use this data to train AI models or share it with third
82
80
parties.
83
81
84
- By using Ask Gordon, you help improve Docker AI's reliability and accuracy,
85
- making it more effective for all users .
82
+ By using Ask Gordon, you help improve Docker AI's reliability and accuracy for
83
+ everyone .
86
84
87
85
If you have concerns about data collection or usage, you can
88
86
[ disable] ( #disable-ask-gordon ) the feature at any time.
89
87
90
88
## Enable Ask Gordon
91
89
92
90
1 . Sign in to your Docker account.
93
- 2 . Navigate to the ** Beta features** tab in settings.
94
- 3 . Check the ** Enable Docker AI** checkbox.
91
+ 1 . Go to the ** Beta features** tab in settings.
92
+ 1 . Check the ** Enable Docker AI** checkbox.
95
93
96
- The Docker AI terms of service agreement is displayed . You must agree to the
97
- terms before you can enable the feature. Review the terms and select ** Accept
98
- and enable** to continue.
94
+ The Docker AI terms of service agreement appears . You must agree to the terms
95
+ before you can enable the feature. Review the terms and select ** Accept and
96
+ enable** to continue.
99
97
100
- 4 . Select ** Apply** .
98
+ 1 . Select ** Apply** .
101
99
102
100
> [ !IMPORTANT]
103
101
>
104
- > For Docker Desktop versions 4.41 and earlier, this settings lived under the ** Experimental features** tab on the ** Features in development** page.
102
+ > For Docker Desktop versions 4.41 and earlier, this setting is under the
103
+ > ** Experimental features** tab on the ** Features in development** page.
105
104
106
105
## Using Ask Gordon
107
106
108
107
You can access Gordon:
109
108
110
109
- In Docker Desktop, in the ** Ask Gordon** view.
111
- - Via the Docker CLI, with the ` docker ai ` CLI command.
110
+ - In the Docker CLI, with the ` docker ai ` command.
112
111
113
- Once you've enabled the Docker AI features, you'll also find references to ** Ask
114
- Gordon** in various other places throughout the Docker Desktop user interface.
115
- Whenever you encounter a button with the ** Sparkles** (✨) icon in the user
116
- interface, you can use the button to get contextual support from Ask Gordon.
112
+ After you enable Docker AI features, you will also see ** Ask Gordon** in other
113
+ places in Docker Desktop. Whenever you see a button with the ** Sparkles** (✨)
114
+ icon, you can use it to get contextual support from Ask Gordon.
117
115
118
116
## Example workflows
119
117
120
- Ask Gordon is a general-purpose AI assistant created to help you with all your
121
- Docker-related tasks and workflows. If you need some inspiration, here are a few
122
- ways things you can try:
118
+ Ask Gordon is a general-purpose AI assistant for Docker tasks and workflows. Here
119
+ are some things you can try:
123
120
124
121
- [ Troubleshoot a crashed container] ( #troubleshoot-a-crashed-container )
125
122
- [ Get help with running a container] ( #get-help-with-running-a-container )
@@ -134,9 +131,9 @@ $ docker ai "What can you do?"
134
131
135
132
### Troubleshoot a crashed container
136
133
137
- If you try to start a container with an invalid configuration or command, you
138
- can use Ask Gordon to troubleshoot the error. For example, try starting a
139
- Postgres container without specifying a database password:
134
+ If you start a container with an invalid configuration or command, use Ask Gordon
135
+ to troubleshoot the error. For example, try starting a Postgres container without
136
+ a database password:
140
137
141
138
``` console
142
139
$ docker run postgres
@@ -156,17 +153,16 @@ container's name, or inspect the container and open the **Ask Gordon** tab.
156
153
157
154
### Get help with running a container
158
155
159
- If you want to run a specific image but you're not sure how, Gordon might be
160
- able to help you get set up:
156
+ If you want to run a specific image but are not sure how, Gordon can help you get
157
+ set up:
161
158
162
159
1 . Pull an image from Docker Hub (for example, ` postgres ` ).
163
- 2 . Open the ** Images** view in Docker Desktop and select the image.
164
- 3 . Select the ** Run** button.
160
+ 1 . Open the ** Images** view in Docker Desktop and select the image.
161
+ 1 . Select the ** Run** button.
165
162
166
- In the ** Run a new container** dialog, you should see a message about
167
- ** Ask Gordon** .
163
+ In the ** Run a new container** dialog, you see a message about ** Ask Gordon** .
168
164
169
- ![ Ask Gordon hint in Docker Desktop] ( ../../images/gordon-run-ctr.png )
165
+ ![ Screenshot showing Ask Gordon hint in Docker Desktop. ] ( ../../images/gordon-run-ctr.png )
170
166
171
167
The linked text in the hint is a suggested prompt to start a conversation with
172
168
Ask Gordon.
@@ -176,13 +172,13 @@ Ask Gordon.
176
172
Gordon can analyze your Dockerfile and suggest improvements. To have Gordon
177
173
evaluate your Dockerfile using the ` docker ai ` command:
178
174
179
- 1 . Navigate to your project directory:
175
+ 1 . Go to your project directory:
180
176
181
177
``` console
182
- $ cd path/to/my/ project
178
+ $ cd < path-to-your- project>
183
179
```
184
180
185
- 2 . Use the ` docker ai ` command to rate your Dockerfile:
181
+ 1 . Use the ` docker ai ` command to rate your Dockerfile:
186
182
187
183
``` console
188
184
$ docker ai rate my Dockerfile
@@ -202,8 +198,8 @@ across several dimensions:
202
198
203
199
### Migrate a Dockerfile to DHI
204
200
205
- Migrating your Dockerfile to use [ Docker Hardened Images] ( /manuals/dhi/_index.md ) helps you build
206
- more secure, minimal, and production-ready containers. DHIs are designed to
201
+ Migrating your Dockerfile to use [ Docker Hardened Images] ( /manuals/dhi/_index.md )
202
+ helps you build more secure, minimal, and production-ready containers. DHIs
207
203
reduce vulnerabilities, enforce best practices, and simplify compliance, making
208
204
them a strong foundation for secure software supply chains.
209
205
@@ -218,16 +214,15 @@ To request Gordon's help for the migration:
218
214
If you've enabled Ask Gordon and you want to disable it again:
219
215
220
216
1 . Open the ** Settings** view in Docker Desktop.
221
- 2 . Navigate to ** Beta features** .
222
- 3 . Clear the ** Enable Docker AI** checkbox.
223
- 4 . Select ** Apply** .
217
+ 1 . Go to ** Beta features** .
218
+ 1 . Clear the ** Enable Docker AI** checkbox.
219
+ 1 . Select ** Apply** .
224
220
225
221
### For organizations
226
222
227
- If you want to disable Ask Gordon for your entire Docker organization, using
228
- [ Settings
229
- Management] ( /manuals/enterprise/security/hardened-desktop/settings-management/_index.md ) ,
230
- add the following property to your ` admin-settings.json ` file:
223
+ To disable Ask Gordon for your entire Docker organization, use [ Settings
224
+ Management] ( /manuals/enterprise/security/hardened-desktop/settings-management/_index.md )
225
+ and add this property to your ` admin-settings.json ` file:
231
226
232
227
``` json
233
228
{
@@ -238,8 +233,7 @@ add the following property to your `admin-settings.json` file:
238
233
}
239
234
```
240
235
241
- Alternatively, you can disable all Beta features by setting ` allowBetaFeatures `
242
- to false:
236
+ Or disable all Beta features by setting ` allowBetaFeatures ` to false:
243
237
244
238
``` json
245
239
{
0 commit comments