Hi, I’m starting to create a, sort of huge, Django application. I started writing the application from simple task and ran it and it was working fine. And then i tried to dockerize it and that is when i started getting issues. I resolved some of them but this mysql issue is the one which I haven’t been able to resolve. The error that i get is “Can’t connect to local MySQL server through socket”.
My Docker file contents are:
ADD . /userCentral
COPY start.sh /start.sh
RUN pip install -r requirements.txt
My docker-compose file is:
But somehow I am getting the error I mentioned. Any help would be appreciated.
P.S. I would like to mention here that when I run “docker images”, I get two images named as ‘none’. One of them must be mysql, but for some reason it shows as none