Microservices deployment with Docker involves three things:
- Application packaging, for example, JAR.
- Building a Docker image with a JAR and dependencies using a Docker instruction file, a Dockerfile, and the docker build command. This allows you to repeatedly create images.
- Docker container execution from this newly built image using docker run.
The preceding information will help you to understand the basics of Docker. You will learn more about Docker and its practical usage in Chapter 4, Implementing a Microservice. For more information, refer to https://docs.docker.com.