diff options
| author | Alexander Barton <alex@barton.de> | 2024-03-29 12:34:50 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2024-03-31 11:19:48 +0200 |
| commit | ddba1263073e27059ba5346d6665612524454531 (patch) | |
| tree | 35b9d760761070d5c911814dd6765845ae273a76 | |
| parent | bbcaf628f4a325110a333b9f20a23bbfa6ca0de4 (diff) | |
| download | ngircd-ddba1263073e27059ba5346d6665612524454531.tar.gz ngircd-ddba1263073e27059ba5346d6665612524454531.zip | |
Fix quoting in code examples in doc/Container.md
| -rw-r--r-- | doc/Container.md | 11 |
1 files 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 <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 ``` |