Docker is a container platform that makes software development, deployment, and shipping easier. Containers are lightweight and executable software packages that include everything that is needed to run software. In this section, we are creating a container from our Spring Boot backend, as follows:
- Install Docker on your workstation. You can find the installation packages at https://www.docker.com/get-docker. There are installation packages for multiple platforms, and if you have a Windows operating system, you can go through the installation wizard using the default settings.
- The Spring Boot application is just an executable JAR file that can be executed with Java. The JAR file can be created with the following Maven command:
mvn clean install
You can also use Eclipse to run Maven goals by opening the Run | Run configurations... menu. Select your project...