Zed
Zed

Reputation: 5921

Accessing files inside Docker container

I started playing today with Docker, pulled the Centos image, configured apache inside the container with php and I am able to access the website using the ip address. However, I don't know how am I supposed to access the source files of my app that is stored inside the container, using the IDE(PHPStorm). What would be the best way to do that ?

Upvotes: 4

Views: 2364

Answers (2)

a4356
a4356

Reputation: 65

The ability to directly edit container files will be implemented in Phpstorm 2025.1

Upvotes: 1

Sabin
Sabin

Reputation: 12100

The best way would be to use VOLUME and mount your source codes to the container.
That way, your IDE will have access to code in the host and all the changes you make will also be reflected in the containers.

Upvotes: 7

Related Questions