简体   繁体   中英

port conflicts for drupal as well as for apache2 on docker in ubuntu 18.04

I have installed docker on ubuntu 18.04. In docker, I have created one image of Drupal 8 and other is of mysql. MySQL need apache2 which is at 8080 and Drupal also need port 8080. what should I do to use apache2 and Drupal?

you can change the apache port from 8080 to 8081 in apache container while starting it as the command given below

docker run -dit --name my-running-app -p 8081:80 my-apache2

then you can connect from mysql to apache2 using 8081 port.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM