diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2019-06-17 13:25:50 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2019-06-17 13:25:50 +0200 |
commit | a3f2131eb69c57570a41d036f395df9252c39b8b (patch) | |
tree | 881b6c92c7d70ee63e37e0416a3bc9d1ec6fd87b /doc/functions | |
parent | 3c14bda7f5a065d3d290399db2ef15457af3906b (diff) | |
download | nixpkgs-a3f2131eb69c57570a41d036f395df9252c39b8b.tar nixpkgs-a3f2131eb69c57570a41d036f395df9252c39b8b.tar.gz nixpkgs-a3f2131eb69c57570a41d036f395df9252c39b8b.tar.bz2 nixpkgs-a3f2131eb69c57570a41d036f395df9252c39b8b.tar.lz nixpkgs-a3f2131eb69c57570a41d036f395df9252c39b8b.tar.xz nixpkgs-a3f2131eb69c57570a41d036f395df9252c39b8b.tar.zst nixpkgs-a3f2131eb69c57570a41d036f395df9252c39b8b.zip |
doc: Use prompt more often
Diffstat (limited to 'doc/functions')
-rw-r--r-- | doc/functions/dockertools.xml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/functions/dockertools.xml b/doc/functions/dockertools.xml index a042013b8e7..3e9281557d5 100644 --- a/doc/functions/dockertools.xml +++ b/doc/functions/dockertools.xml @@ -480,9 +480,9 @@ pullImage { <literal>nix-prefetch-docker</literal> command can be used to get required image parameters: -<programlisting> -$ nix run nixpkgs.nix-prefetch-docker -c nix-prefetch-docker --image-name mysql --image-tag 5 -</programlisting> +<screen> +<prompt>$ </prompt>nix run nixpkgs.nix-prefetch-docker -c nix-prefetch-docker --image-name mysql --image-tag 5 +</screen> Since a given <varname>imageName</varname> may transparently refer to a manifest list of images which support multiple architectures and/or @@ -491,17 +491,17 @@ $ nix run nixpkgs.nix-prefetch-docker -c nix-prefetch-docker --image-name mysql By default it will match the OS and architecture of the host the command is run on. -<programlisting> -$ nix-prefetch-docker --image-name mysql --image-tag 5 --arch x86_64 --os linux -</programlisting> +<screen> +<prompt>$ </prompt>nix-prefetch-docker --image-name mysql --image-tag 5 --arch x86_64 --os linux +</screen> Desired image name and tag can be set using <option>--final-image-name</option> and <option>--final-image-tag</option> arguments: -<programlisting> -$ nix-prefetch-docker --image-name mysql --image-tag 5 --final-image-name eu.gcr.io/my-project/mysql --final-image-tag prod -</programlisting> +<screen> +<prompt>$ </prompt>nix-prefetch-docker --image-name mysql --image-tag 5 --final-image-name eu.gcr.io/my-project/mysql --final-image-tag prod +</screen> </para> </section> |