Saturday, 2 March 2019

2 . Docker Series - Components of Docker




                    Components of Docker


For premium DevOps and AWS Courses: https://imojo.in/2cox7em
  1. AWS with the project 
  2. DevOps Real-Time 
  3. DevOps with the project 
  4. AWS Real-Time
  5. Linux Admin

Docker Engine


Standardised runtime environment. Like standardized shipping yard.
Application portability.





Docker Image


#docker run -it ubuntu /bin/bash
#docker pull ubuntu

#docker ps  -a






Containers


  • Running bare bone linux machine

#docker run -it ubuntu /bin/bash
i= interactive
t= sudo tty
ubuntu= image
/bin/bash=process or application to launch


To start a container:
# docker ps  -a
CONTAINER ID        IMAGE                   COMMAND                  CREATED             STATUS                           PORTS               NAMES
f40e984506e        ubuntu              "/bin/bash"         9 minutes ago       Exited (127) 5 seconds ago                         sharp_dubinsky

# docker start df40e984506e
df40e984506e
# docker attach df40e984506e
root@df40e984506e:/#
to come out of container without stopping it. Press
Ctrl + (P+Q)
# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
df40e984506e        ubuntu              "/bin/bash"         11 minutes ago      Up About a minute                       sharp_dubinsky


# docker stop df40e984506e
df40e984506e










Registries and Repos


Docker Hub is registry.
Trusted repos.e.g: ubuntu, centos, etc.
IMAGE

User Repos:
#docker run random/web




Click below to view more :