How can I show the full command in the third column (CREATED BY) in the docker history
output?
$ $ docker history python
IMAGE CREATED CREATED BY SIZE COMMENT
69ee9abe2bda 5 weeks ago CMD ["python3"] 0B buildkit.dockerfile.v0
<missing> 5 weeks ago RUN /bin/sh -c set -eux; wget -O get-pip.p… 10MB buildkit.dockerfile.v0
<missing> 5 weeks ago ENV PYTHON_GET_PIP_SHA256=22b849a10f86f5ddf7… 0B buildkit.dockerfile.v0
...
The CREATED BY
is truncating/abbreviating the commands which makes it hard to reconstruct the original Dockerfile. How do I get the full CREATED BY
commands?
Use the docker history --no-trunc
option to show the full command.