DEV Community

Nick-Telles
Nick-Telles

Posted on

Why is Docker powerful?

Docker as tool is very powerful due to it's open source nature and how it can help application development. From the use for this lab I found it to be similar to a virtual machine. It runs on its own and allows you to code and run programs seperate from the machine you are using. Docker runs using containers to house your projects.

Play with Docker

The play with docker tutorials provide an excellent start point for learning how to use this technology. It gives a good rundown on using a news api key to pull articles and information from the source of the api key and pulling that information up on your local machine using ports 80 and 4000. This information is changed in the dot env file contained within our docker container. This can be leveraged with other sources such as our Nasa news example we worked on earlier.
Image description

NASA News

After attempting to leverage our nasa news onto the container I was able to use a link to our GitHub repo and have it pull the data from there. this was done by making small changes to the existing news api tutorial that was followed earlier. The data pulled from our repo appeared under port 4000 similarly to how it worked in the tutorial.
Image description

Top comments (0)