fbpx

In the below video I have explained how we can link a mysql docker container with a wordpress docker container to create a multi container environment which can act like a development environment

https://youtu.be/Qm5RKuyBOZI

UseCase:

Create a mysql container and link with wordpress container.

a) Start mysql as container

docker run –name mydb -d -e MYSQL_ROOT_PASSWORD=intelliqit mysql:5

b) Create a wordpress container and link with mysql container

docker run –name mywordpress -d -p 8888:80 –link mydb:mysql wordpress

c) To access the home page of wordpress

  1. Launch any browser
  2. public_ip_of_dockerhost:8888

Let's Update Your Skills from anywhere with Our Experts...!

GET STARTED
WhatsApp chat