4

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 ?

2 Answers 2

7

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Mounting volume to the host machine will slow down things for Magento in Mac OS, any solution for that?
1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.