Docker Basics (Commands)

Hi ,

Recently i learned on docker thought of sharing the knowledge so that it would be both comprehensive and notes for myself

Basic command in Docker

  • docker run <image name> ---> Create and Run Container
  • docker start <container name> || <container id>--->Start the container
  • docker stop <container name> || <container id> ---> Stop the container
  • docker restart <container name> || <container id> --> Restart the container
  • docker inspect <container name> || <container id> --> Inspect the running Container
  • docker logs <container name> || <container id>---> to view the logs of container
  • docker ps ---> List of running Docker
  • docker rm <container name> or docker remove <container name>--> Remove the container


Lets now jump into docker build statement

For Build we have some keywords to remember

  • FROM --> to specify which base image u want to copy
  • RUN --> execute Specified Command
  • ENTRYPOINT --> command executed when the container is started
  • CMD -->command executed when the container is started but it can overide the executive statement.
  • EXPOSE --> Open Designated Port that is used by container
  • LABEL/MAINSTREAM -->sets a label with a key of “mainstream”


Commands in the Docker file with Build

  • Building an image from Dockerfile ----> docker build <image_file>
  • Building an image from container and commit it-->docker commit <container> <image>:<tag>
  • Pulling the image --> docker image pull <image name>
  • Tagging the docker image --> docker tag <source img>: <tag > <target image>:<tag>
  • Pushing image to docker hub --> docker login && docker image push <image_name>
  • List container Image --> docker image ls
  • Delete the image --> docker image <remove || rms>

要查看或添加评论,请登录

Sumit Patnaik的更多文章

  • Deep-Dive on Siebel Open UI File

    Deep-Dive on Siebel Open UI File

    Hi, This is just continuation of Open UI Series. Please check out if you want refresher or want to know about it.

    1 条评论
  • Should we move from JMS implementation to Kafka

    Should we move from JMS implementation to Kafka

    As we are navigating to complexities of modern business needs, our software need to upgrade accordingly . Most system…

  • Building Blocks of Order Management : Understanding the Entities of COM(Customer Order Management)

    Building Blocks of Order Management : Understanding the Entities of COM(Customer Order Management)

    Hi, This article will not be full fledged covering on Customer Order Management nor it can be explained with single…

    1 条评论
  • Orchestrater - Build and Design

    Orchestrater - Build and Design

    Hi, I have been reading the book "Build an Orchestrator in Go" By Tim Boring for last 3 weeks . I would like to share…

  • Toolbar in Siebel and its Significance

    Toolbar in Siebel and its Significance

    Hi, I was reading Alexander Hansal Siebel CRM Handbook and came across the article about Toolbar and Menu addition into…

  • Streamlining Order Management: A Key to Success in Communications

    Streamlining Order Management: A Key to Success in Communications

    In the fast-paced world of communications, efficient order management is crucial for delivering seamless customer…

    1 条评论
  • Kafka and Use case Benefit with Siebel

    Kafka and Use case Benefit with Siebel

    Hi, This is similar to post i made earlier but better use case example we can cater in real world Before Diving Deep…

    2 条评论
  • Understanding Siebel Integration Object Base Type

    Understanding Siebel Integration Object Base Type

    Dive into this insightful of the article and feel free to share your thought. Below are types and some example: 1.

  • User Experience with Siebel CRM

    User Experience with Siebel CRM

    Hi, I already briefed about Open UI and its component in the previous articles. I will try to cater the components…

  • 5. Nuances of SIS OM

    5. Nuances of SIS OM

    Hi, This article is more about one BS itself "SIS OM" and how important is this function and what all Siebel provides…

    5 条评论

社区洞察

其他会员也浏览了