From 4ce985103795c03acc98ef4c4c9d14b7fd93a000 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 17 Feb 2024 10:51:51 -0500 Subject: [PATCH] Specify the image name of the docker container --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 047b61a..28f2a18 100644 --- a/README.md +++ b/README.md @@ -55,13 +55,13 @@ docker build -t dlap . Follow the guide below and when ready type the following ```bash -docker run -d -v :/usr/src/bot/config.json -v :/usr/src/bot/music --name dlap dlap:latest +docker run -d -v :/usr/src/bot/config.json -v :/usr/src/bot/music --name dlap ``` - -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" +- \ means the name of the image, if you are building it, then you should use `dlap:latest`, otherwise use either `alee14498/dlap:latest` or `ghcr.io/alee14/dlap:stable`. View logs (optional) ```bash @@ -74,7 +74,7 @@ docker logs -f dlap # Configuration Make a new file called `config.json` inside the root of your project. -``` +```json { "token": "token_here", "txtFile": true/false,