Loading...

Learn Docker in 5 Steps - Tutorial For Beginners

10,299 views

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Jul 12, 2019

Docker in 50 Steps - https://links.in28minutes.com/in28min...

Let's learn Docker in 5 Easy Steps. - Github - https://github.com/in28minutes/docker

Step 00 - Installing Docker
Step 01 - A simple Docker use case - Run an existing application
Step 02 - Playing with Docker - Containers and Images
Step 03 - How does Docker work?
Step 04 - Manually creating a docker image
Step 05 - Dockerizing a Spring Boot Application using Dockerfile and Spotify Maven Plugin

Step 00 - Installing Docker
https://docs.docker.com/install/

Step 01 - A Simple Docker User Case - Run an existing application
https://hub.docker.com/u/in28min
docker run -d -p 5000:5000 in28min/todo-rest-api-h2:1.0.0.RELEASE
docker run -d -p 8761:8761 springcloud/eureka
docker run -d -e MYSQL_ROOT_PASSWORD=dummypassword -e MYSQL_USER=todos-user -e MYSQL_PASSWORD=dummytodos -e MYSQL_DATABASE=todos --p 3306:3306 mysql:5.7

Step 02 - Playing with Docker - Containers and Images

Image is static

Container is dynamic

649 docker run in28min/todo-rest-api-h2:1.0.0.RELEASE
650 docker run -p 5000:5000 in28min/todo-rest-api-h2:1.0.0.RELEASE
651 clear
652 docker run -p 8761:8761 springcloud/eureka
653 clear
654 docker run -d -p 5000:5000 in28min/todo-rest-api-h2:1.0.0.RELEASE
655 docker run -d -p 8761:8761 springcloud/eureka
656 docker images
657 docker containers
658 docker containers ls
659 docker container
660 docker container ls
661 docker container ls -l
662 docker container ls -l
663 docker container ls
664 docker container ls -a
665 clear
666 docker container ls -a
667 docker container start fed549e69e9d
668 docker container ls
669 docker container stop tender_ardinghelli
670 docker container ls
671 docker container ls -a
672 clear
673 docker container ls -a
674 docker container start c165f459e7d7
675 docker container stop 151a77679241
676 docker container start c165f459e7d7
677 docker container logs c165f459e7d7
678 docker container logs c165f459e7d7
679 docker container logs c165f459e7d7
680 docker container logs c165f459e7d7
681 docker container ls
682 docker container ls -a
683 docker container rm fed549e69e9d
684 docker container ls -a
685 docker container prune
686 docker container ls -a
687 docker container inspect 0967ba7aa180
688 docker images
689 docker image history f8049a029560
690 clear
691 docker images
692 docker image history in28min/todo-rest-api-h2
693 docker image history in28min/todo-rest-api-h2:1.0.0.RELEASE
694 docker images
695 docker image remove f8049a029560
696 docker image remove 3094afcbdf12
697 docker container stop c165f459e7d7
698 docker image remove 3094afcbdf12
699 docker container rm c165f459e7d7
700 docker image remove 3094afcbdf12
701 docker images
702 docker containers ls
703 docker container ls
704 docker container ls -a

Step 03 - How does Docker work?

Docker Architecture
Docker Architecture

Step 04 - Manually creating a new docker image
716 docker run -dit openjdk:8-jdk-alpine
720 docker container cp target/docker-in-5-steps-todo-rest-api-h2-1.0.0.RELEASE.jar 28d5e5d893fdb1530e9920ff66fee252adc834a8b572b77b3fdf7d316730127c:/tmp
725 docker container exec romantic_aryabhata ls /tmp 734 docker container commit romantic_aryabhata in28min/manual-todo-rest-api:v1
735 docker container commit --change='CMD ["java","-jar","/tmp/docker-in-5-steps-todo-rest-api-h2-1.0.0.RELEASE.jar"]' romantic_aryabhata in28min/manual-todo-rest-api:v2
743 docker run -d -p 5000:5000 in28min/manual-todo-rest-api:v2

Step 05 : Containerizing Spring Boot Application using Dockerfile and Spotify Maven Plugin
Run com.in28minutes.rest.webservices.restfulwebservices.RestfulWebServicesApplication as a Java Application.

mvn package
docker run -d -p 5000:5000 in28min/docker-in-5-steps-todo-rest-api-h2:1.0.0.RELEASE
docker login
docker push in28min/docker-in-5-steps-todo-rest-api-h2:1.0.0.RELEASE
Become a FullStackDeveloper and Architect - https://github.com/in28minutes/learn/...
Download Presentation and Notes - https://courses.in28minutes.com/p/in2...
Java, Spring Boot, REST, Microservices Learning Path - https://www.youtube.com/watch?v=jf6do...
All Spring Boot Articles - http://www.springboottutorial.com/spr...
The in28Minutes Way - https://github.com/in28minutes/in28mi...
Troubleshooting Guide - https://github.com/in28minutes/in28mi...
Github - https://github.com/in28minutes/in28mi...
The in28Minutes Way - 1 - Continuous Learning is the Key

Loading...

Advertisement

to add this to Watch Later

Add to

Loading playlists...