Docker - MySQL containers on using the same volume of a data-only container

1k views Asked by At

Currently, I'm trying to figure out on how to run multiple MySQL containers that uses the same volume from a data-only container. After running the first one and successfully created my database and records in there, I tried to run another new MySQL container and faced this error:

Lost connection to MySQL server at 'reading initial communication packet', system error: 0

I have mapped different ports to host 3306 using the containers. What's the problem? o.O

0

There are 0 answers