From the course: Extending, Securing, and Dockerizing Spring Boot Microservices

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Running the application with MySQL container

Running the application with MySQL container

From the course: Extending, Securing, and Dockerizing Spring Boot Microservices

Start my 1-month free trial

Running the application with MySQL container

- [Instructor] Before continuing you need to install Docker Community Edition at store.docker.com. Just drill down into Community Edition and install the appropriate version for your platform. I've already done this and to verify it let's go to a command prompt and type docker --version. I'm running Docker for Mac, version 18.06 Community Edition. So, now that we've got Docker installed, it's magic time. In one command line we will download the MySQL image from hub.docker.com repository. That's similar to the Maven Central Repository. Since it's such a long command line, I have it in a readme file. There is now a new readme markdown file in the exercise files. I have installed the Markdown plugin to view these. If you have it just as a text file, you can copy and paste directly from that as well. I'm going to copy this line here and paste it in my terminal. Now, what this one command will do, it will create and run a container in the background. Name the container ec-mysql. Set the…

Contents