Skip to content

Commit

Permalink
DOC explain how to run docker with --user flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdoc authored Apr 26, 2024
1 parent daab93d commit d5ad20d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,14 @@ docker run --rm caseforge:latest --help
To let docker see the folder containing the head 3D model, you will have to bind the folder inside the container. For example, if the head model is in `/tmp/test-headcase/model.zip`, the following command should be run

```bash
docker run -v /tmp:/tmp -t --rm caseforge:latest /tmp/test-headcase/model.zip /tmp/test-headcase/case.zip
docker run --user=$(id -u):$(id -g) -v /tmp:/tmp -t --rm caseforge:latest \
/tmp/test-headcase/model.zip \
/tmp/test-headcase/case.zip
```

Note that the flag `--user=$(id -u):$(id -g)` is optional, and it is used to ensure that the generated zip file will have the same file ownership and permissions as your user (rather than the root user).


### Running with Docker on an ARM system (Mac M1/M2/M3)

To run the pipeline on an ARM system such as a Mac with M1/M2/M3 chip, you need to pass the `--platform linux/amd64` flag to all docker calls (see this [stackoverflow question](https://stackoverflow.com/questions/71040681/qemu-x86-64-could-not-open-lib64-ld-linux-x86-64-so-2-no-such-file-or-direc)).
Expand Down

0 comments on commit d5ad20d

Please sign in to comment.