Reputation: 17299
I created a docker container. I can ssh into the docker container. How can I view files in my docker container with a GUI (specifically the WebStorm IDE)?
I'm running a MAC on OSX Yosemite 10.10.5.
Upvotes: 0
Views: 980
Reputation: 3416
docker run daemon -v /mycodedir:/mydockerdir {libraryname}/{imagename}
if you mount your work directory and map it to the directory running files in the container you will be able to edit and see them in Web Storm.
Upvotes: 1
Reputation: 5533
The usual pattern is to mount your source code into the container as a volume. Your IDE can work with the files on your host machine and the processes running in the container can see the files. docs
There might be a way to set up remote file access with WebStorm, but I'd recommend trying the other approach first.
Upvotes: 1