]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Fix quoting in code examples in doc/Container.md
authorAlexander Barton <alex@barton.de>
Fri, 29 Mar 2024 11:34:50 +0000 (12:34 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 31 Mar 2024 09:19:48 +0000 (11:19 +0200)
doc/Container.md

index 29cc848b2c859078d18b548f5c63501ed24f62ee..b50f2e9f187a055a2d8236fa8cdfed6e8f7f8fe5 100644 (file)
@@ -21,7 +21,8 @@ If you are using Git, you can tag the built image like this (use the ID of the
 newly built image!):
 
 ```bash
-podman tag <container_id> "ngircd:$(git describe --tags | sed 's/rel-//g')"
+tag=$(git describe --tags | sed 's/rel-//g')
+podman tag <container_id> "ngircd:${tag}"
 ```
 
 ## Running the container
@@ -50,7 +51,7 @@ mkdir -p /host/path/to/ngircd/conf.d
 touch /host/path/to/ngircd/conf.d/my.conf
 podman run --name=ngircd --detach \
   -p 127.0.0.1:6667:6667 \
-  -v /host/path/to/ngircd/conf.d:/opt/ngircd/etc/ngircd.conf.d' \
+  -v "/host/path/to/ngircd/conf.d:/opt/ngircd/etc/ngircd.conf.d" \
   ngircd:<tag>
 ```
 
@@ -63,9 +64,9 @@ With Docker and Podman, you can pass arguments to the `ngircd` binary inside of
 the container by simply appending it to the "run" command line like this:
 
 ```bash
-podman run --name=ngircd --rm -it \
-  -v /host/path/to/ngircd/conf.d:/opt/ngircd/etc/ngircd.conf.d' \
-  ngircd:<tag>
+podman run --rm -it \
+  -v "/host/path/to/ngircd/conf.d:/opt/ngircd/etc/ngircd.conf.d" \
+  ngircd:<tag> \
   --configtest
 ```