![]() There should be a file where all setup steps go in and you just edit and run it for your container to come up. “docker run -p 3307:3306 –name=” and mount it using -v option when you are spinning up your docker container using the “docker run” commandīut you don’t want to do this every time on the command prompt. I did this using WSL console, would recommend the same if you are on windows. Once you have docker installed, download MySql’s official latest, or intended version’s image from MySql’s office docker repo using “docker pull mysql” But I went in using WSL’s (Windows Subsystem for Linux) Ubuntu flavor, and install docker using usual apt package manager. Spin up MySQL using Docker on windows : The complete stuff This blog, serves as a record of this exercise, and probably help folks who are newbies like me for such a setup. An attractive option was to use Docker based container with volume that can be backed up and migrated. But I did not want to setup MySQL the installer way, that way I get stuck with this machine and think about migration trauma if I make an app that needs to be deployed on say, cloud. This new machine, is on windows, and while I was impressed with what Microsoft had come up with for developers in past 3-4 years (I use Mac for office work, so have been out of touch since), there still was a need to setup my development machine with all the components that I would be using for application development. Besides it’s more fun to work from scratch with no restriction. I am setting up my development machine, because in my experience office laptops ,are not meant for personal code development if you are serious about #codeForSelf.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |