mirror of
https://github.com/docker/docs.git
synced 2026-11-04 10:01:00 +00:00
Fetch the Docker style package from docs-toolkit and retain only the local vocabulary and repository-specific configuration. Resolve existing canonical-name violations exposed by the shared package.
1.4 KiB
1.4 KiB
title, linktitle, description, weight, keywords, params
| title | linktitle | description | weight | keywords | params | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Migrate using Gordon | AI-assisted migration | Use Gordon to automatically migrate your Dockerfile to Docker Hardened Images | 15 | ai assistant, migrate Dockerfile, docker hardened images, automated migration |
|
{{< summary-bar feature_name="Gordon DHI migration" >}}
You can use Gordon to automatically migrate your Dockerfile to use Docker Hardened Images (DHI).
- Ensure Gordon is enabled.
- In the terminal, navigate to the directory containing your Dockerfile.
- Start a conversation with the assistant:
docker ai - Type:
"Migrate my dockerfile to DHI" - Follow the conversation with the assistant. The assistant will edit your Dockerfile, so when
it requests access to the filesystem and more, type
yesto allow the assistant to proceed.
When the migration is complete, you see a success message:
The migration to Docker Hardened Images (DHI) is complete. The updated Dockerfile
successfully builds the image, and no vulnerabilities were detected in the final image.
The functionality and optimizations of the original Dockerfile have been preserved.
Important
As with any AI tool, you must verify the assistant's edits and test your image.