content/manuals/dhi/migration/migrate-with-ai.md
{{< summary-bar feature_name="Gordon DHI migration" >}}
You can use Gordon to automatically migrate your Dockerfile to use Docker Hardened Images (DHI).
docker ai
"Migrate my dockerfile to DHI"
yes to 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.