Skip to content

Commit

Permalink
Fix DOCKER.md pointing to old image
Browse files Browse the repository at this point in the history
  • Loading branch information
master-of-zen committed Aug 29, 2023
1 parent bcdce1e commit a9d5d65
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ The [docker image](https://hub.docker.com/r/masterofzen/av1an) is frequently upd
The image provides three types of tags that you can use:
- `masterofzen/av1an:master` for the latest commit from `master`
- `masterofzen/av1an:sha-#######` for a specific git commit (short hash)
- (outdated) `masterofzen/av1an:latest` for the latest stable __python__ release

## Examples

Expand All @@ -14,16 +13,16 @@ The following examples assume the file you want to encode is in your current wor
Linux

```bash
docker run --privileged -v "$(pwd):/videos" --user $(id -u):$(id -g) -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}
docker run --privileged -v "$(pwd):/videos" --user $(id -u):$(id -g) -it --rm masterofzen/av1an:master -i S01E01.mkv {options}
```

Windows

```powershell
docker run --privileged -v "${PWD}:/videos" -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}
docker run --privileged -v "${PWD}:/videos" -it --rm masterofzen/av1an:master -i S01E01.mkv {options}
```

The image can also be manually built by running
The image can also be manually built by running

```sh
docker build -t "av1an" .
Expand All @@ -34,7 +33,7 @@ in the root directory of this repository. The dependencies will automatically be
To specify a different directory to use you would replace $(pwd) with the directory

```bash
docker run --privileged -v "/c/Users/masterofzen/Videos":/videos --user $(id -u):$(id -g) -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}
docker run --privileged -v "/c/Users/masterofzen/Videos":/videos --user $(id -u):$(id -g) -it --rm masterofzen/av1an:master -i S01E01.mkv {options}
```

The --user flag is required on linux to avoid permission issues with the docker container not being able to write to the location, if you get permission issues ensure your user has access to the folder that you are using to encode.

0 comments on commit a9d5d65

Please sign in to comment.