2 ms·
Not quite. --iidfile writes the image id of the build to a file. --cidfile writes the container id of the container to a file. To use the output of --iidfile
by cpuguy83 4y ago
Not quite.
--iidfile writes the image id of the build to a file.
--cidfile writes the container id of the container to a file.
To use the output of --iidfile in a "docker run", instead of specifying an image name call "$(cat <iidfile>)".
As an example:
docker build --iidfile out/imageid ...
docker run ... $(cat out/imageid)
--- edit for formatting ---