I am trying to access the MySQL database in the Docker container but is not allowing me to access it.
The Mysql database is running on my local machine.
I tried with docker run --network="127.0.0.1" -it -p 8080:8080 but no luck
my docker file
FROM tomcat:latest
ADD target/sample.war /usr/local/tomcat/webapps/
EXPOSE 8080
CMD ["catalina.sh", "run"]