Skip to content

Commit a87facd

Browse files
committed
gordon: support for DHI migration
1 parent be8f355 commit a87facd

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

content/manuals/ai/gordon/_index.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ If you have concerns about data collection or usage, you can
101101
102102
## Using Ask Gordon
103103

104-
The primary interfaces to Docker's AI capabilities are through the **Ask
105-
Gordon** view in Docker Desktop, or if you prefer to use the CLI: the `docker
106-
ai` CLI command.
104+
You can access Gordon:
105+
106+
- In Docker Desktop, in the **Ask Gordon** view.
107+
- Via the Docker CLI, with the `docker ai` CLI command.
107108

108109
Once you've enabled the Docker AI features, you'll also find references to **Ask
109110
Gordon** in various other places throughout the Docker Desktop user interface.
@@ -119,6 +120,7 @@ ways things you can try:
119120
- [Troubleshoot a crashed container](#troubleshoot-a-crashed-container)
120121
- [Get help with running a container](#get-help-with-running-a-container)
121122
- [Improve a Dockerfile](#improve-a-dockerfile)
123+
- [Migrate a Dockerfile to DHI](#migrate-a-dockerfile-to-dhi)
122124

123125
For more examples, try asking Gordon directly. For example:
124126

@@ -194,6 +196,10 @@ across several dimensions:
194196
- Portability
195197
- Resource efficiency
196198

199+
### Migrate a Dockerfile to DHI
200+
201+
See [Use Gordon AI](/manuals/dhi/how-to/migrate.md#use-gordon-ai) in the DHI section.
202+
197203
## Disable Ask Gordon
198204

199205
### For individual users

content/manuals/dhi/how-to/migrate.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,3 +240,22 @@ ENTRYPOINT [ "python", "/app/image.py" ]
240240

241241
{{< /tab >}}
242242
{{< /tabs >}}
243+
244+
### Use Gordon AI
245+
246+
Alternatively, you can request assistance to
247+
[Gordon](/manuals/ai/gordon/_index.md), Docker's AI feature, to migrate your
248+
Dockerfile:
249+
250+
1. In the terminal, navigate to the directory containing your Dockerfile.
251+
1. Run:
252+
253+
```bash
254+
docker ai "Migrate my dockerfile to DHI"
255+
```
256+
257+
1. Follow the conversation with Gordon. When it requests access to the filesystem,
258+
type `yes` to enable it to update the file.
259+
260+
> [!IMPORTANT]
261+
> As with any AI tool, you must verify Gordon's edits and test your image.

0 commit comments

Comments
 (0)