# Day 16 - Task: Docker for DevOps Engineers

1. ### Use the `docker run` command to start a new container and interact with it through the command line. \[Hint: `docker run hello-world`\]
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1749921293934/a17a03e3-4ac7-40ed-805a-5f148cb3c3ab.png align="center")

2. ### Use the `docker inspect` command to view detailed information about a container or image.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1749921318182/1d453122-bb11-48b7-a4be-8dcb6a716b62.png align="center")

3. ### Use the `docker port` command to list the port mappings for a container.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1749921402760/4749ee5e-8475-431d-bb13-23cbfdbd47a4.png align="center")

4. ### Use the `docker stats` command to view resource usage statistics for one or more containers.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1749921444838/e9e23344-00b4-4dbd-bcb5-288a626b6c93.png align="center")

5. ### Use the `docker top` command to view the processes running inside a container.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1749921466021/21e42e07-9678-42d6-90fb-c7454e95c5e1.png align="center")

6. ### Use the `docker save` command to save an image to a tar archive.
    
7. ### Use the `docker load` command to load an image from a tar archive.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1749921562918/58d2d38a-851c-4ff4-a6ea-175d773d38f8.png align="center")

Now NGINX will be accessible at:

http://&lt;your-ec2-public-ip&gt;:8081

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1749921789864/179d9838-b3d2-4e4d-b088-7d8fab4361eb.png align="center")
