DevOps Classroom notes 09/Jan/2024

Docker containers contd

Running Containers

  • Attached vs detached mode: Attached mode is where your terminal will be showing stdout, stderr of the container, whereas in detached mode the container runs in the background without obstructing terminal.
  • Default mode is attached.

Dockerfile instructions

CMD vs ENTRYPOINT

  • CMD:
    • executes the command that starts the application in container.
    • CMD can be overriten by passing values after docker image name in container run
  • ENTRYPOINT: Refer Here for official docs
    • executes the command that starts the application in container
  • When we run the container it executes ENTRYPOINT + CMD
    • IF ENTRYPOINT exists CMD will be arguments to entrypoint
  • Recommended practice: Most of the applications use CMD only

Docker image layers

Exercise:

  • I have to download a software from some website. What is the gurantee that the file has not been tampered.
  • How to verify if the downloaded file is what the software provider published.
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

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

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%