![]() For example if you configure the socket's location to be /var/run/mysqld/mysqld.sock then you could mount and use that as your connection point.ĭocker run -v /var/run/mysqld:/mariadb_socket. ![]() Mount the mariadb socket to the docker container and connect to mariadb via socket. Then connect to mariadb with localhost:3306 This network mode essentially means that the container has direct access to localhost and you can now access localhost:3306.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |