DevOps Classroom notes 02/Oct/2024

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

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
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company
Exit mobile version
%%footer%%