Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to README.md for building image from docker-compose.yml #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: .
```
Copy link
Contributor

@gbooker gbooker Feb 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would read better as

Edit your `docker-compose.yml` and replace this line:
<yaml block>
with:
<second yaml block>


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.
Expand Down