1
By my windows machine I have access to a linux server that is on the same network through an SSH. Do I need to access a web application that runs inside apache from a Docker container on that server, any idea how to do that? Currently I can only access it through the browser of the linux server and I want to access it through my windows machine.
The problem I want to access the web page that runs on the container’s apache, not the container itself. Understand ?
– Gabriel Lopes
You need to move the container up by mapping the port to some server port, e.g.: Docker run --name
<nome>
-p 80:80 Image:– Thiago Alves
The container will answer on the same port of the linux server, just access through the windows browser, put the ip_do_servor_linux:port ... ai it will direct to the container
– Thiago Alves
I’ll try it here. Do you have any idea how I can link a container with an apache image to a container with a php image? I’ve got the two containers running but I think I need to connect the two somehow
– Gabriel Lopes
Here’s a nice tutorial on how to do: https://www.cloudreach.com/blog/containerize-this-php-apache-mysql-within-docker-containers/
– Thiago Alves