diff options
| author | Lev Gorodetskiy <github@droserasprout.space> | 2022-04-21 14:37:40 +0400 |
|---|---|---|
| committer | Lev Gorodetskiy <github@droserasprout.space> | 2022-04-21 14:43:47 +0400 |
| commit | a8536a72b2d8c4ceb65467f642bf6e47facc282d (patch) | |
| tree | 8ae92ca2c9b0f89e78b7c50239d9a47768438415 /docs/docker.md | |
| parent | c8236221d4a876f2a1f42b97e61c33c4ef3b818a (diff) | |
| download | slskd-a8536a72b2d8c4ceb65467f642bf6e47facc282d.tar.gz | |
Docs proofreading
Diffstat (limited to 'docs/docker.md')
| -rw-r--r-- | docs/docker.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/docker.md b/docs/docker.md index da999270..af15da07 100644 --- a/docs/docker.md +++ b/docs/docker.md @@ -1,8 +1,8 @@ # Running slskd in Docker -For most users, the quick start will be all that is needed: +For most users, a quick start will be all that is needed: -``` +```shell docker run -d \ -p 5000:5000 \ -p 5001:5001 \ @@ -14,13 +14,13 @@ docker run -d \ This configuration, however, doesn't include any shared directories. -Each share needs to be mapped to the container as a volume, and then each local directory within the container needs to be added to the configuration. +First, you need to map each share to the container as a volume. Then each local directory within the container needs to be added to the configuration. -In the following example, assume that the slskd application directory will be `/var/slskd` on the docker host. Assume that the directories `/home/JohnDoe/Music` and `/home/JohnDoe/eBooks` will be shared. +In the following example, assume that the slskd application directory will be `/var/slskd` on the docker host. Assume that the directories `/home/JohnDoe/Music` and `/home/JohnDoe/eBooks` will be shared. For this scenario, the `docker run` command would be: -``` +```shell docker run -d \ -p 5000:5000 \ -p 5001:5001 \ @@ -41,9 +41,9 @@ directories: - /ebooks ``` -Alternatively, the configuration of these shares could be achieved in the `docker run` command by setting the `SHARED_DIR` environment variable, like so: +You can achieve the same configuration by setting the `SHARED_DIR` environment variable in the `docker run` command: -``` +```shell docker run -d \ -p 5000:5000 \ -p 5001:5001 \ |
