Swift Server Docker - failed to launch REPL process 'A'

«  Enumerate All Sub-mask
VIPER  »

When I tried the official Apple published Swift Docker Image, I notice it throws me error ⬇️ even I followed the guide.

$ docker run --cap-add sys_ptrace -it --rm swift swift
Unable to find image 'swift:latest' locally
latest: Pulling from library/swift
e7ae86ffe2df: Pull complete
53185c7ef032: Pull complete
4906d3fbd8ee: Pull complete
Digest: sha256:afeaee88cf71f0f0b15ec3db504257abb63e78f6554e8f9091295dbf301424ff
Status: Downloaded newer image for swift:latest
error: failed to launch REPL process: 'A' packet returned an error: 8

For solving it, I found 2 ways in this discussion thread:

  • append --privileged
$ docker run --privileged --cap-add sys_ptrace -it --rm swift swift
Welcome to Swift version 5.4.2 (swift-5.4.2-RELEASE).
Type :help for assistance.
  1>
  • append --security-opt seccomp=unconfined
$ docker run --cap-add sys_ptrace --security-opt seccomp=unconfined -it --rm swift swift

Welcome to Swift version 5.4.2 (swift-5.4.2-RELEASE).
Type :help for assistance.
  1>

Reference

Published on 25 Jul 2021 Find me on Facebook, Twitter!

«  Enumerate All Sub-mask
VIPER  »

Comments

    Join the discussion for this article at here . Our comments is using Github Issues. All of posted comments will display at this page instantly.