From 090b96482d50640bfc2c84ef66e3e5f84c42d1b7 Mon Sep 17 00:00:00 2001 From: Abigail G Date: Thu, 24 Sep 2020 00:14:45 -0400 Subject: [PATCH] update docker documentation to mention github registry also corrected a couple errors fixes #212 --- README-DOCKER.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README-DOCKER.md b/README-DOCKER.md index 2862667..2782750 100644 --- a/README-DOCKER.md +++ b/README-DOCKER.md @@ -1,6 +1,6 @@ # Docker help for qrm2 -You have multiple ways to use docker to run an instance of qrm2 +You have multiple ways to use docker to run an instance of qrm2. - [Docker help for qrm2](#docker-help-for-qrm2) - [Using docker-compose and the prebuilt-image (recommended)](#using-docker-compose-and-the-prebuilt-image-recommended) @@ -23,13 +23,16 @@ This is the easiest method for running the bot without any modifications. version: '3' services: qrm2: - image: "classabbyamp/discord-qrm2:latest" + image: "classabbyamp/qrm2:latest" + # OR + # image: "docker.pkg.github.com/miaowware/qrm2/qrm2:latest" restart: on-failure volumes: - "./data:/app/data:rw" environment: - PYTHONUNBUFFERED=1 ``` + > Note that there are two possible sources for the image: docker's and github's registry. Github's registry requires [a few extra steps](https://docs.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-docker-for-use-with-github-packages) during the initial setup. 3. Create a subdirectory named `data`. @@ -59,7 +62,7 @@ This is the easiest method to run the bot with modifications. services: qrm2: build: . - image: "discord-qrm2:local-latest" + image: "qrm2:local-latest" restart: on-failure volumes: - "./data:/app/data:rw" @@ -75,7 +78,7 @@ This is the easiest method to run the bot with modifications. ```none $ docker-compose build --pull - $ docker-compose -d + $ docker-compose up -d ``` > Run without "-d" to test the bot. (run in foreground) @@ -95,7 +98,7 @@ This methods is not very nice to use. 2. Run docker build: ```none - $ docker build -t discord-qrm2:local-latest . + $ docker build -t qrm2:local-latest . ```