Components of Docker
For premium DevOps and AWS Courses: https://imojo.in/2cox7em
- AWS with the project
- DevOps Real-Time
- DevOps with the project
- AWS Real-Time
- 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
# 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