r/learnprogramming • • Apr 05 '22

Name one programming/comp sci concept you never understood and if you understand it, try to explain it to them

Name a programming concept such as virtual functions, pointers, certain algorithms, etc that you always had a hard time understanding and why.

Someone else who reads yours and does understand it, try to explain it to them to help them learn

1.6k Upvotes

738 comments sorted by

View all comments

12

u/[deleted] Apr 05 '22

I don’t understand for what Docker is used or in what projects I should use it

1

u/zacsxe Apr 06 '22

An image is a file system snap shot with all the necessary components for a(n ideally) small service to run. For example, your application and all its dependencies.

A container is a small portion of a host computer where an image can be run in isolation. It’s like a small computer running inside a host computer. For example, your image above can be run as a container.

Docker is a platform with tools that allows you to do the above things easily.

Kubernetes is a platform that allows you to use and orchestrate containers easily over multiple host computers. These hosts are sometimes referred to as a cluster.

Cloud Kubernetes services are managed services that allow you to use kubernetes clusters in data centers through a cloud provider platforms.

It’s not for a type of project, it’s for how you want to run your apps to handle scale, distribution, complexity.