Running To launch PhpStorm we need to provide the current display and your X11 socket. You can launch PhpStorm with the following command:
$ docker run -it --rm \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v ~/.PhpStorm2018.2:/home/developer/.PhpStorm2018.2 \
-v ~/Projects:/workspace \
ianitsky/phpstorm:latest
With this your configuration will be persisted to /home//.PhpStorm2017.1 so that you don't lose it over subsequent runs. It also makes any sourcecode under /home//Projects available to PhpStorm. Inside the dockerized environment, it will be available through /workspace.
Note: Remember to change the ownership of the config directory on the host as it will be created as root if it does not already exist and PhpStorm won't be able to write to it.
Content type
Image
Digest
Size
580 MB
Last updated
almost 8 years ago
docker pull ianitsky/phpstorm