# Docker

Docker is a software platform that allows you to build, test, and deploy applications quickly. Docker packages software into standardized units called containers that have everything the software needs to run including libraries, system tools, code, and runtime. Using Docker, you can quickly deploy and scale applications into any environment and know your code will run.

### Commands:

* To see all images in local
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687567138434/3aa6b458-dad0-4daa-88cf-22efdf8e5645.png align="center")
    
* To search for an image in dockerhub
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687567219904/e6f5255e-2523-4f76-91d3-df983d607714.png align="center")
    
* To pull an image from dockerhub
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687567328404/54f7e78c-354e-42ad-9647-127723c49da4.png align="center")
    
* To give a name to the container and run in an integrated terminal
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687567548728/4174fa94-ebf7-4036-b532-1012f3ab7448.png align="center")
    
* Use the `docker run` command to start a new container and interact with it
    
    through the command line.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687563460227/24fbbb98-dbdb-432f-bb6e-bee55767fcb1.png align="center")
    
* Use the `docker inspect` command to view detailed information about a container or image.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687564774802/bf770de3-d19c-4ad5-8884-98d6db938eca.png align="center")
    
* Use the `docker port` command to list the port mappings for a container.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687566007578/a7d4f0f4-9923-4d83-bcb1-a240402a3ed3.png align="center")
    
* Use the `docker stats` command to view resource usage statistics for one or more containers.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687566318163/5c6f16d1-e756-40f9-be18-c406e7578b22.png align="center")
    
* Use the `docker top` command to view the processes running inside a container.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687566420640/04cb14f0-46d0-43ae-98e2-e2748efb16d5.png align="center")
    
* Use the `docker save` command to save an image to a tar archive.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687566645654/debe239e-949d-449e-a9d7-ee7f3d76312b.png align="center")
    
* Use the `docker load` command to load an image from a tar archive.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1687567001008/b725c495-2979-47b1-810e-9dab11743670.png align="center")
