Live data from Hacker News

Ask HN: What is the best source to learn Docker in 2023?

news.ycombinator.com

81–84 of 84 posts

Re: Ask HN: What is the best source to learn Docker in 2023?

#81
post #74
post #20

Earlier quoted context omitted.

Note that one can also use a lightweight Kubernetes distribution such as Minikube [1] during development so that the workflow is similar for both development and production. [1] https://minikube.sigs.k8s.io/docs/start/

But this often not necessary, because if you can run a production Kubernetes cluster, you can also run a dev Kubernetes cluster, so no need to run a local Kubernetes distribution. My workflow typically looks like this: 1. Run app locally during dev without Docker 2. Build and run Docker image locally with Docker compose 3. Deploy to development Kubernetes cluster 4. Deploy to production Kubernetes cluster

> if you can run a production Kubernetes cluster, you can also run a dev Kubernetes cluster

When you have many developers, the cost for maintaining one dev cluster per developer quickly goes up. One cluster for all developers can be used for testing/staging, but not for development.

Minikube is a replacement for your step (2), except you can now use your existing tools (kubectl etc) instead of docker-compose.

Re: Ask HN: What is the best source to learn Docker in 2023?

#83
post #23

I would start with understanding what containers are. Read up on what namespaces and cgroups are. Understand first what a container is, what it gives you and how Docker (vs other containerizers) fits into the picture. The first fundamental thing to understand is that containers are merely processes that have some sandboxing and perhaps limits applied to them, mem_cg, CFQ throttling, etc. Once you have that under your…

That's like someone asking how to learn C and you suggest starting with assembly. It's the most roundabout way - and OP is conflating docker with CI/CD, referencing PHP and Node - it's probably safe to say they aren't looking for a deep dive. Plus - knowing how it runs under the hood doesn't mean you know how to use docker itself.

> someone asking how to learn C and you suggest starting with assembly

And this would be a great advice!

Re: Ask HN: What is the best source to learn Docker in 2023?

#84
post #12
post #5

It sounds to me like you have a project that involves on-demand deployment of containers. Like it or not, the current standard for that is kubernetes. As someone is already saying on here, there will still be Dockerfiles and container technology involved, but not necessarily "docker compose" or "docker swarm." Just my guess, but I think that's part of why you're struggling to find the tutorials you're looking for, is…

> It sounds to me like you have a project that involves on-demand deployment of containers How did you gather this? OP only mentions CI/testing, nothing about deployment. That's a long distance from needing kubernetes.

hmm I understood it as, "when i push a new branch to CI, I want to automatically deploy a container running that code." maybe I was wrong!

btw, imo, nearly all commercial shops' use cases are a long distance from needing kubernetes, but that doesn't seem to be stopping very many people... :)

Post reply on HN