Welcome to Simple Programming
In this video, let us see how to Containarize your spring boot application using Docker
I will do a tutorial series on Docker and we shall look at things like Docker Compose, Swarms etc
but for this example, let me quickly give you an idea about containerization and will help you to quickstart your containarization journey with docker
Now what is meant by Containarization with Docker
Let me give you a simple use case for better understanding.
lets say you have a web server, database, messaging service, etc… and you have to ship your application to multiple centers and make it run in those platforms.
for this you have to make sure that all these services are supported by the underlying OS. Application built on one OS can’t be guaranteed to run in another OS.
Some services might work in one version and others might require a different version. additionally you have take care of the dependencies version.
This would be very tedious work.
Do you see the problem here. lot of work needs to be done to make a software work in multiple environments
Now docker comes to our rescue
Docker is a platform where you can build, ship and run distributed application, in multiple environments like laptops, data centers, virtual machines and in cloud with less or ZERO ground work
Dockerfile is nothing but a file that contains instructions and arguments that is needed to build and run a program
you can do all the stuffs directly in the command line, but that would be manual work, so you can simplify that by using docker file
list of basic docker commands
docker login
docker ps -a
docker images
docker build
docker run -d -p
docker push
docker rm
docker rmi
Ещё видео!