docker build --iidfile ./imageid.txt .

Category: Docker

docker build --iidfile ./imageid.txt .

Write the built image ID to a file after build

Writes the resulting image ID to a file after building. Useful in CI pipelines.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.