Skip to content

Commit 0c45417

Browse files
committed
Update README to provide REPL-in-Docker instructions for macOS and not be as architecture-specific.
1 parent 2d2c2fb commit 0c45417

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ docker run -it swift /bin/bash
2424
If you want to run the Swift REPL you will need to run the container with additional privileges:
2525

2626
```bash
27+
# If running Docker on Linux:
2728
docker run --security-opt seccomp=unconfined -it swift
29+
30+
# If running Docker on macOS:
31+
docker run --privileged -it swift
2832
```
2933

3034
We also provide a "slim" image. Slim images are images designed just for running an already built Swift program. Consequently, they do not contain the Swift compiler.
@@ -40,7 +44,7 @@ RUN swift build -c release
4044
FROM swift:slim
4145
WORKDIR /root
4246
COPY --from=builder /root .
43-
CMD [".build/x86_64-unknown-linux/release/docker-test"]
47+
CMD [".build/release/docker-test"]
4448
```
4549

4650
## Contributions

0 commit comments

Comments
 (0)