DEV Community

Cover image for How to Docker
Kayra Orankoy
Kayra Orankoy

Posted on

How to Docker

What is Docker and why is it so powerful?

As described by themselves, "Docker is an open platform for developing, shipping, and running applications". Docker utilizes "containers" which basically allow for developers to work on programs and interact without the worry of personal hardware or system based issues
Image description

As pictured above, docker provides similar functionality as a VPN, but does it in a more light weight manner. If you would like to learn more about docker and its overall functionality there is a video provided at the end of the blog

Applying Docker to the NASA api project (In theory)

Applying Docker to our NASA projects should be similar to the newsAPI exercise, first start with cloning in your repository. From there you'll need to get access to you API key.
Image description
You will also need to get the link to the endpoint by opening a port then copying the link of the webpage you are directed to into the correct line.

Image description
From here, run docker-compose up and click port 80.
Image description
Image description

assuming all of the correct information, the process should be similar to the practice problem except with the NASA api in place.

Additional Docker info

https://www.youtube.com/watch?v=rOTqprHv1YE
https://docs.docker.com/get-started/overview/

Top comments (0)