What is a container
- Container is a isolated area. This has everything required to run the application
- Containers are lightweight and can be scaled
- To run a docker container we need docker image
- Docker image contains all the necessary dependencies to run your application
- All the images which can be used are stored in Registry
- Every Docker will need a registry to get the images
- Default Registry is docker hub which is public
- Organizations will have private Registries where they will be storing application images
- Next Steps:
- Explore running containers
- Containerizing Applications (Running applications build by developers inside containers)
Exploring the Installations
- Windows:
- Ensure you have a non home edition windows 11 or 10 Refer Here
- Mac: Refer Here
- Linux: Refer Here
curl -fsSL https://get.docker.com -o install-docker.sh
sudo sh install-docker.sh
- Exploring Docker
- Create an account in Docker Hub Refer Here
- Docker Playground
Running containers based on popular images
- Verify the docker is working or not
docker info
- Run our first container
docker run hello-world

* Lets see what is the status of this contianer
docker container ls
docker container ls -a

I want to run a java application (spring petclinic)
- Refer Here for java app
- This application requires java 17
- This application uses port 8080
- to run this application the command would
java -jar spring-petclinic-3.2.0-SNAPSHOT.jar
