Skip to content

Commit

Permalink
Update README.md with new ch instructions (#17)
Browse files Browse the repository at this point in the history
Update ch usage instructions with require --platform linux/amd64 flag for Apple Silicon and other ARM users.
  • Loading branch information
camerondurham authored Jan 24, 2024
1 parent 396c8e3 commit abd6674
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,17 @@ ch create csci350 \
--port 25000:25000 \
--cap-add SYS_PTRACE \
--shell /bin/bash \
--privileged
--privileged \
--platform linux/amd64
```

Below is the single-line version for Windows. Please remember to replace `PATH_TO_YOUR_WORKDIR` wirh the path from part 1.

```
ch create csci350 --image camerondurham/cs350-docker:v1 --volume PATH_TO_YOUR_WORKDIR:/xv6_docker --security-opt seccomp:unconfined --port 7776:22 --port 7777:7777 --port 25000:25000 --cap-add SYS_PTRACE --shell /bin/bash --privileged
ch create csci350 --image camerondurham/cs350-docker:v1 --volume PATH_TO_YOUR_WORKDIR:/xv6_docker --security-opt seccomp:unconfined --port 7776:22 --port 7777:7777 --port 25000:25000 --cap-add SYS_PTRACE --shell /bin/bash --privileged --platform linux/amd64
```

> **NOTE**: The command above requires `ch` version at least `v0.3.7`. Refer to [install instructions](https://github.com/camerondurham/ch#step-2-install-ch) if you see errors about non-existent `--platform` flag.
### 3. Start the Environment

Expand Down

0 comments on commit abd6674

Please sign in to comment.