You can then address the specifically mapped port on that container with localhost: from the host machine. The next problem was to update the JDBC driver in maven (to the newest). i just add the networkmode line to the composer file and everything starts working. This is the final run statement: docker run -p 3306:3306 -name mysql1 -e MYSQLROOTPASSWORDroot -d mysql -default-authentication-pluginmysqlnativepassword -h 127.0.0.1. In this case, the container will share the networking with the host and localhost will hit the host machine as well.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |