From 90e2f1fe500f3ae4361ae900e5b7e375251e9fbb Mon Sep 17 00:00:00 2001 From: Teddy Caddy Date: Wed, 2 Feb 2022 10:42:40 -0500 Subject: [PATCH] Changes to `README.md` for building image from `docker-compose.yml` --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6679e753..4b64ba62 100644 --- a/README.md +++ b/README.md @@ -92,14 +92,33 @@ Note: In this configuration, you must do some additional configuration: The provided `docker-compose` templates use the `plexinc/pms-docker` image which is the amd64 build and won't work on ARM devices. -To use `docker-compose` with ARM devices, you must first build one of the ARM images locally. +To use `docker-compose` with ARM devices, you must first build one of the ARM images locally. There are two ways to do this: +#### Build the image with `docker` command ```sh docker build -t plexinc/pms-docker:latest -f Dockerfile.armv7 . # or arm64 ``` Then you can `docker-compose up`. +#### Edit `docker-compose.yml` and build with `docker-compose` command +Edit your `docker-compose.yml` file, delete this line: +```yaml + image: plexinc/pms-docker +``` +Replace the line you just deleted with: +```yaml + build: + dockerfile: Dockerfile.armv7 # or Dockerfile.arm64 + context: . +``` + +You can build (or force a rebuild) with this command: +```sh +docker-compose build --no-cache +``` +Then you can `docker-compose up`. + ## Parameters - `-p 32400:32400/tcp` Forwards port 32400 from the host to the container. This is the primary port that Plex uses for communication and is required for Plex Media Server to operate.