diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2020-09-23 00:38:04 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2020-09-23 01:25:25 +0200 |
commit | e1af37634b387e18361f15b2db1c7f7f93d37ebc (patch) | |
tree | b2d13f6759d5212216bba8e454ba0d2d41391f7e /doc/builders/images/dockertools.xml | |
parent | 47297487c55762e206d53127f3b02b9c2901d31f (diff) |
doc: Improve code listings
By adding prompts and removing unnecessary indentation.
Diffstat (limited to 'doc/builders/images/dockertools.xml')
-rw-r--r-- | doc/builders/images/dockertools.xml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/builders/images/dockertools.xml b/doc/builders/images/dockertools.xml index 126698d0a9ed..d881e712a041 100644 --- a/doc/builders/images/dockertools.xml +++ b/doc/builders/images/dockertools.xml @@ -132,11 +132,11 @@ buildImage { <para> By default <function>buildImage</function> will use a static date of one second past the UNIX Epoch. This allows <function>buildImage</function> to produce binary reproducible images. When listing images with <command>docker images</command>, the newly created images will be listed like this: </para> -<screen><![CDATA[ -$ docker images +<screen> +<prompt>$ </prompt>docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello latest 08c791c7846e 48 years ago 25.2MB -]]></screen> +</screen> <para> You can break binary reproducibility but have a sorted, meaningful <literal>CREATED</literal> column by setting <literal>created</literal> to <literal>now</literal>. </para> @@ -152,11 +152,11 @@ pkgs.dockerTools.buildImage { ]]></programlisting> <para> and now the Docker CLI will display a reasonable date and sort the images as expected: -<screen><![CDATA[ -$ docker images +<screen> +<prompt>$ </prompt>docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello latest de2bf4786de6 About a minute ago 25.2MB -]]></screen> +</screen> however, the produced images will not be binary reproducible. </para> </example> |