shyim / shopware-docker

Easy to use Docker Installation for Shopware 5 and Shopware 6
MIT License
115 stars 27 forks source link

Getting bad address 'mysql' error when building containers #65

Closed zaifastafa closed 4 years ago

zaifastafa commented 4 years ago

image

I was using mysql:8 image but I saw in the Shopware doc that it is not recommended due to technical issues. So I switched back to 5.7 but now I keep getting this error even after doing docker prune and removing all images/data/volumes.

I tried official mysql image and also shyim docker mysql 57 but neither of them works.

shyim commented 4 years ago

@philipgatzka Did you had this not on your setup? I guess it was dns related stuff

zaifastafa commented 4 years ago

So how to resolve this?

shyim commented 4 years ago

In /etc/resolv.conf you have a search domain. Maybe remove it. I guess that was it

zaifastafa commented 4 years ago

In /etc/resolv.conf you have a search domain. Maybe remove it. I guess that was it

It is dynamically generated so any changes in that file gets overridden.

zaifastafa commented 4 years ago

If I use mysql:8 only then it builds properly. Other than that any version or another image gives this bad address issue.

zaifastafa commented 4 years ago

I had to delete the complete repository and then clone it again for it to work.

shyim commented 4 years ago

Strange. Did you had changed something?

zaifastafa commented 4 years ago

No just started from scratch. Tried different images but it kept giving the bad address issue. So finally I just deleted everything including the repo and then used 5.7 for mysql and it worked

shyim commented 4 years ago

As it works. I will close this