aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-02-14 17:33:19 -0500
committerAndrew Lee <alee14498@protonmail.com>2024-02-14 17:33:19 -0500
commitc180bd541adb689d6bc0ab72473fd5408e38d312 (patch)
treeae17317b970b43bad63a34f82d72003d18685416
parent13c7889ce9d8f031a6fb7349166aa9f3840cb031 (diff)
downloadDLAP-c180bd541adb689d6bc0ab72473fd5408e38d312.tar.gz
DLAP-c180bd541adb689d6bc0ab72473fd5408e38d312.tar.bz2
DLAP-c180bd541adb689d6bc0ab72473fd5408e38d312.zip
Specify volumes on README
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 7b0d0f1..f2941cd 100644
--- a/README.md
+++ b/README.md
@@ -32,10 +32,11 @@ docker build -t dlap .
Follow the guide below and when ready type the following
```
-docker run -d --name dlap dlap:latest
+docker run -d -v <path to config>:/usr/src/bot/config.json -v <path to music>:/usr/src/bot/music --name dlap dlap:latest
```
- -d flag tells Docker to run the container in detached mode, meaning it will run the container in the background of your terminal and not give us any output from it. If we don't provide it, the run will be giving us the output until the application exits. Discord bots aren't supposed to exit after certain time, so we do need this flag
+- -v flag in Docker is used for volume mounting. It creates a bind mount, which allows you to specify a host path (on your local machine) and a container path (inside the Docker container). When the Docker container is run, the specified host path is mounted into the container at the specified container path.
- --name assigns a name to the container. By default, container is identified by id that is not human-readable. To conveniently refer to container when needed, we can assign it a name
- dlap:latest means "latest version of dlap image"