3 ms·
It was always surprising to me that Docker doesn’t just slurp up the Dockerfile just in case so you could get it back easily if you really needed to.
by Traster 6y ago
It was always surprising to me that Docker doesn’t just slurp up the Dockerfile just in case so you could get it back easily if you really needed to.
- captn3m0 6y agoWith the right format string (--format), I think docker history --no-trunc might do this.
- shawabawa3 6y agodocker history --no-trunc <image_id> --format '{{ .CreatedBy }}' | tail -r this is pretty close