Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pilat's avatar
Level 41

Docker problems in Tinkerwell

Ok, here's the setup:

  1. Docker desktop for MacOS
  2. Laravel Sail
  3. Tinkerwell

This all worked like a charm, until the latest Docker Desktop upgrade. Looks that the Docker now creates socket file in a user space. So, for the terminal, it was fixed by adding this line to the end of ./zshrc:

export DOCKER_HOST=unix:///Users/$(whoami)/Library/Containers/com.docker.docker/Data/docker.raw.sock

In PHPStorm, I had to define the same path in the "Build, Execution, Deployment :: Docker :: TCP Socket :: Engine API URL".

So, now I can use Sail in the terminal and in PHPStorm.

The remaining piece of the puzzle is the Tinkerwell - in the Docker tab I keep seeing "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?" error and I don't know where to put my proper socket-file location exactly for the Tinkerwell to start using it…

0 likes
3 replies
pilat's avatar
Level 41

Starting Tinkerwell from Terminal this way helps:

DOCKER_HOST=unix:///Users/$(whoami)/Library/Containers/com.docker.docker/Data/docker.raw.sock open /Applications/Tinkerwell.app

But that's a bit tedious )

Note: couldn't find anything like "Environment Variables" in the Tinkerwell's preferences. Version 3.21.2

1 like

Please or to participate in this conversation.