Wednesday, 13 September 2017

Docker

Started studying about the Docker as the topic is very fascinating.
Developed a spring application n deployed it in the Docker.

Github link:- Docker Sample java Application

docker is nothing but a container to hold your appication and seperating the OS there by many such dockers can run in the same system sharing same OS just the high layer varies.

There's a concept same as Maven called DockerHub,
From where you download all repos i.e images of Java,Tomcat,DB etc and you can also upload your Docker image to the docker.

Docker creates a local repo just like maven .m2 and uses it for later usage.

Steps:
install docker in windows 10 machine
mvn clean install
docker build -t gs-spring-boot-docker-0.1.0 .
docker run -p 8080:8080 gs-spring-boot-docker-0.1.0

No comments:

Post a Comment

Installing Docker and Minikube

  install docker-   sudo apt install docker.io   set user to docker group:- sudo gpasswd -a   {user} docker   imp commands:- ...