m-barthelemy / DockerSwift

A Swift client library for Docker
MIT License
22 stars 3 forks source link

Error: connect(descriptor:addr:size:): Operation not permitted (errno: 1) #1

Closed oza-c closed 11 months ago

oza-c commented 11 months ago

Hey, I wanted to establish a connection to the local Docker Engine in my Swift app for MacOS, but I'm already stuck at the simple connection setup.

I call the following code in a method:

let DockerWebServiceClient : DockerClient = DockerClient();

defer {try! DockerWebServiceClient.syncShutdown()}

let info = try await DockerWebServiceClient.info()

print("• Docker daemon info: \(info)")

and get the error message: connect(descriptor:addr:size:): Operation not permitted (errno: 1)

I have already checked that the local Docker Engine is running. I don't know what the problem is, with my user I can call commands like "docker ps" etc. in the terminal.

Best regards ;)

oza-c commented 11 months ago

Solution found: Deactivating sandboxing in XCode helped.