lxcid / docker-swift

Home Page:https://hub.docker.com/r/lxcid/swift/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker for Apple Swift

Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns.

docker pull lxcid/swift:latest

Getting Started

Run Swift REPL

# Swift REPL requires kernel capabilities thus the container have to run in privileged mode. See SR-54
docker run -it --privileged lxcid/swift

FAQ

Fail to run swift with the following error: error: failed to launch REPL process: process launch failed: 'A' packet returned an error: 8.

Swift REPL seems to requires access to kernel capabilities that docker dropped by default. Run your container with --privileged will resolve this issue.

Referenced from:

Credits