docker / community

Apache License 2.0
326 stars 90 forks source link

How to access files inside docker on it's IP address #100

Closed richard457 closed 4 years ago

richard457 commented 5 years ago

Hello, I have one confusion about docker, normally when I develop website, I can access files under IP:/images/one.png for example but with docker, this no longer works how can I do that?

thomasbiddle commented 5 years ago

Hi @richard457 ,

We'd need a lot more information on your setup: 1) Are you running this on a server, or on your own personal machine. If it's your own personal machine and you're trying to access things away from your home - ensure you have port forwarding set up properly. 2) Please provide your docker run command - you likely just need to expose the port. 3) Please share exactly how you're attempting to access the file.