Looking for new opportunities
I am always looking for a new opportunities to expand my knowledge and help others while doing so, there for if you are looking for someone to join your team or you have something you want some help with feel free to reach out via email.
1-You need to install the plugin
2- Next you will have to restart
PHPStorm, mean while you will need to install a program called
homebrew using the following command
brew install socat
3- You will have to execute the following command every time you need want to use
socat -d -d -lf /tmp/socat.txt TCP-L:2376,fork UNIX:/var/run/docker.sock
You can read more about
socat from this link.
4- Now you will have to configure
PHPStorm like the following
socatto redirect the URL to the socket.
docker-composecommand , not sure why but PHPStorm didn't find it.
5- To configure the debugger you should check do the following
for me, my project depend on a
docker-compose.yml file, so I choose that one.
6- Make sure that you can start / stop Docker, so from the bottom toolbox you will find the Docker icon, clicking on it
will open it and clicking on the
Run button should show the images/containers that you have like
7- Run the debugger (running docker-compose) can be done like the following
And it will run
docker-compose and create the image for you, and from there you can find many valuable information about your container
Hopefully this will change later, and it will be much simpler if (and only if) PHPStorm team found a better way to implement it.