2. What is Docker ?
• Docker is an open platform
for developing, shipping,
and running applications.
3. Why we need Docker ?
• Time Saving
• Faster and Easier configuration
• Increase in productivity
• Has the Ability to Reduce the Size
• Better Software Delivery
4. What is Container in Docker ?
• A Docker container image is a
lightweight, standalone, executable
package of software that includes
everything needed to run an
application: code, runtime, system tools,
system libraries and settings.
5. Why we need Container ?
• Everything in a single package
• Repeatability
• Lightweight
• Portability
6. How to install Docker ?
• You can simply install Docker
in Red Hat Enterprise Linux
(RHEL) and CentOS by
following command
• # yum install docker
• Type y when prompted and
hit enter to go further.
7. How to start and enable docker
Service ?
• You can Enable this Service by using # systemctl enable docker
• You can Start this Service by using # systemctl start docker
8. How to find any image using
commands ?
• To search any image you have to use following
command
• # docker search “imagename”
9. How to run a container ?
• To run any container you have to use following
command
• # docker run -itd –”container name”
10. How to get help in Docker ?
• To get help in docker you have to use following
command
• # docker --help
11. How to check history of docker image
or container ?
● You can get the history by using following command
● # docker history “image name or container name”
12. How to check the details of any
container ?
● You can check the details by using following command
● # docker inspect “container name”