Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I hae a machine that has NGINX installed and running listening to port 80. I have a docker file (however to put that) with a process in there that will also try to listen on port 80 (apache). By running this docker file should I expect any conflicts?
Each docker instance (by the dockerfile) is run isolated from the host so it should be able to claim port 80 itself. it will have to be 'exposed' by docker to the physical world for the port to be available. that expose can not be the same port on the host...
eg.. on my physical host, hosting docker infrastructure, I have an apache server running on port 80. in docker container 1 I have nginx, also on port 80, and on a second Docker container I have lighttpd, again, on port 80.
Only the physical host will be accessible from outside, unless you 'expose' the ports of the containers to the outer world.. Docker can be set to expose container1 port 80 to physical port 81 for the nginx, and container2 port 80 to physical port 82 for lighttpd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.