Deploying Dockerized Vapor from Sail dev environment
I have a MBP as a development machine and it is running PHP 7 and I am not able to update it as I do have such local dev environment for a project that runs such setup that it can not be upgraded yet.
I had my Vapor projects running also on the same setup with Valet until I wanted to upgrade the Laravel 9 into use. So I neeeded the PHP 8 and realised that it could be done by moving the project into the Sail which went smoothly. Now when I am trying to deploy the Vapor project which deploys to Docker I ran into problems: Should I try to deploy from OSX the PHP version will cause an error. Should I try to deploy from the Sail the machine requires Docker for the deployment so I tried to install it manually to see it working but I am not able to get it run ok.
The deployment runs until "==> Building Container Image" when it hits the following error: "Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock" And then I tried to give the permission on the Sail machine and the deployment ends up in the following error at the same phase: "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"
Anyone got tips how to get this solved?
Maybe the solution would be the correct installation of Docker on the Sail Docker. Can anyone push me into the right direction with this?
Please or to participate in this conversation.