🚀 DevOps Certified Professional
📅 Starting: 1st of Every Month 🤝 +91 8409492687 | 🤝 +1 (469) 756-6329 🔍 Contact@DevOpsSchool.com

Lab 3 – Docker – 3 July 2023

DevOps

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

==========================================================================
How to create an Image 
-----------------------------------
====================================
- Existing contr - ub + git + apache
- Using Dockerfile

What is an Image?
	- collection of filesystem
	-  ROOT FS --> -> APP FS -> APP FS -> APP FS == Layers

FROM ubuntu
MAINTAINER Rajesh Kumar
RUN apt-get update
RUN apt-get install git -y
RUN apt-get install apache2 -y

  658  docker run -itd ubuntu
  659  docker ps
  660  docker exec -it cd8c8e108d93 /bin/bash
  661  docker ps

  667  docker exec cd8c8e108d93 git
  668  clear
  669  ls
  670  docker ps
  671  docker commit -m"up-up-git-ap" -a"Rajesh Kumar" cd8c8e108d93 up-up-git-ap
  672  docker images
  673  clear
  674  ls
  675  vi dockerfile
  676  docker build -t raju .
  677  clear
  678  vi dockerfile
  679  docker build -t raju .
  680  docker images
Subscribe
Notify of
guest


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

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x