From ddba1263073e27059ba5346d6665612524454531 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 29 Mar 2024 12:34:50 +0100 Subject: [PATCH] Fix quoting in code examples in doc/Container.md --- doc/Container.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/Container.md b/doc/Container.md index 29cc848b..b50f2e9f 100644 --- a/doc/Container.md +++ b/doc/Container.md @@ -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 "ngircd:$(git describe --tags | sed 's/rel-//g')" +tag=$(git describe --tags | sed 's/rel-//g') +podman tag "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: ``` @@ -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: +podman run --rm -it \ + -v "/host/path/to/ngircd/conf.d:/opt/ngircd/etc/ngircd.conf.d" \ + ngircd: \ --configtest ``` -- 2.39.2