Failed to set posix_spawn_file_actions for fd -1 (errno 9)
Expected behavior
Using Docker for Mac preferences to perform basic actions should be usable. In my case, I was adding a shared volume path with the OS dialog.
Actual behavior
Docker for Mac spuriously emits the following error. I do not know if it is related to shared volumes or not.
Information
- Is it reproducible? No idea.
- Is the problem new? Yes.
- Did the problem appear with an update? Yes, although it could have been the update to Catalina, or Docker's updates. Hard to say.
- macOS Version:
10.15.3(Catalina)
Diagnostic logs
I don't have diagnostic logs because they won't run (see #4319).
Docker for Mac: 2.2.0.3 (42716)
Engine: 19.03.5
Notary: 0.6.1
Compose: 1.25.4
Kubernetes: v1.15.5
Credential Helper: 0.6.3
Steps to reproduce the behavior
Unclear yet but the error code above should be enough to diagnose, since it is internal to Docker for Mac's code.
(encountered while researching #4319 / #4318 and #4314)
Facing the same issue after upgrading my macOS to 10.15.3 (19D76) (Catalina)

$docker --version
Docker version 19.03.5, build 633a0ea
Same issue here. Tried both restarting MacOS and reinstalling Docker Desktop. So far no luck. This totally sucks as Docker is now totally unusable
Same issue here. Also tried reinstalling Docker for Desktop with no luck.
Docker version: 2.2.0.4 Engine version 19.03.8 OS: Catalina 10.15.3
Same issue here. Also tried reinstalling Docker for Desktop with no luck.
Docker version: 2.2.0.4 Engine version 19.03.8 OS: Catalina 10.15.3
If you have decided to reinstall, you can try this instead.
cd ~/Library/Containers/com.docker.docker/
rename the "Data" Folder
mv Data Data-old
or delete the whole folder if you dont care about your local containers.
rm -rf Data
Then restarting docker will create the Data folder again.
Docker should be working, but the only difficulty is to rebuild all your local containers.
Same issue here. Also tried reinstalling Docker for Desktop with no luck. Docker version: 2.2.0.4 Engine version 19.03.8 OS: Catalina 10.15.3
If you have decided to reinstall, you can try this instead.
cd ~/Library/Containers/com.docker.docker/rename the "Data" Foldermv Data Data-oldor delete the whole folder if you dont care about your local containers.rm -rf DataThen restarting docker will create the Data folder again. Docker should be working, but the only difficulty is to rebuild all your local containers.
I gave it a go but the Failed to set posix_spawn_file_actions for fd -1 at index 0 with errno 9 still comes back :(
Can confirm restarting my Macbook seems to have helped
Same issue. I've experienced that problem ever since moving to Catalina. Always comes back after update. Restarting does not work, error occurres a few minutes after starting Docker desktop.
I've managed to resolve the issue on my machine by changing the docker config.
Change the credsStore variable from desktop to osxkeychain
Config needs to be changed after updating docker:
➜ ~ cat ~/.docker/config.json
{
"auths" : {
"https://index.docker.io/v1/" : {
}
},
"stackOrchestrator" : "swarm",
"credsStore" : "osxkeychain",
"experimental" : "disabled",
"HttpHeaders" : {
"User-Agent" : "Docker-Client/19.03.5 (darwin)"
}
}
- Change config and restart. This works for me.
Issue:
Failed to set posix_spawn_file_actions for fd -1 at index 0 with errno 9
MacOs: Catalina 10.15.3 (19D76) Docker: Docker version 19.03.8, build afacb8b Docker Desktop: 2.2.0.4
Problem persists, apparently there are other threads concering similar issues: #4035, #4192, *65
Same issue here. Also tried reinstalling Docker for Desktop with no luck. Docker version: 2.2.0.4 Engine version 19.03.8 OS: Catalina 10.15.3
If you have decided to reinstall, you can try this instead.
cd ~/Library/Containers/com.docker.docker/rename the "Data" Foldermv Data Data-oldor delete the whole folder if you dont care about your local containers.rm -rf DataThen restarting docker will create the Data folder again. Docker should be working, but the only difficulty is to rebuild all your local containers.
This fixed the issue for me.
Removing ~/Library/Containers/com.docker.docker/Data and restarting my mac seems to have solved the issued.
docker desktop: 2.3.0.2 catalina: 10.15.4
Issues go stale after 90 days of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30 days of inactivity.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale
I get this also. Any word on a fix?
I get it pretty much after every Docker Desktop update... Always have to delete my ~/Library/Containers/com.docker.docker/Data folder too. That works, is just annoying with large and often used images that I need to rebuild after that.
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked