Live data from Hacker News

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

news.ycombinator.com

1–10 of 84 posts

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

#1
I know docker for a long time but I never used it in serious projects. I find it hard to find good and especially up to date tutorials. I’m especially interested in a tutorial on how to run (feature branch) containers which spin up on bitbucket pipelines/GitHub actions for manual and automated testing for PHP and Node applications (containers should exist as long as a feature branch exists). I found some random YouTubers which give a nice intro/demo into some features but not really a deep dive.

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

#2
If you just want to learn it for fun and home just install portainer and run pihole, you understand a lot more. Then learn to do it via command line. Else just go for kubernetes man. With Docker shim removed from kubernetes no one is using Docker professionally.

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

#4

If you just want to learn it for fun and home just install portainer and run pihole, you understand a lot more. Then learn to do it via command line. Else just go for kubernetes man. With Docker shim removed from kubernetes no one is using Docker professionally.

> With Docker shim removed from kubernetes no one is using Docker professionally.

I think this statement is not as precise as it should be. I'm running docker produced images in a k8s cluster and had to google what you are talking about here.

https://kubernetes.io/blog/2020/12/02/dont-panic-kubernetes-...

"Docker-produced images will continue to work in your cluster with all runtimes, as they always have."

Dockerfile is a very common file to see in projects, and I'm thankful when I see it.

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

#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 that since 2020-ish (idk someone can correct my chronology, maybe 2018? 2021?) they've increasingly become k8s tutorials, not "docker" tutorials.

that's just my guess though :) Happy hacking!

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

#9
I feel like you don't need a deep dive for what you're describing.

Start step by step.

Before building on Github Actions, build locally.

See if you can build and tag and image with the git SHA. Then run your automated test command against the image/container.

Then see if you can write a github action doing exactly what you did locally.

Random blog posts have been more helpful in my experience vs youtube videos.

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

#10

If you just want to learn it for fun and home just install portainer and run pihole, you understand a lot more. Then learn to do it via command line. Else just go for kubernetes man. With Docker shim removed from kubernetes no one is using Docker professionally.

> With Docker shim removed from kubernetes no one is using Docker professionally. I think this statement is not as precise as it should be. I'm running docker produced images in a k8s cluster and had to google what you are talking about here. https://kubernetes.io/blog/2020/12/02/dont-panic-kubernetes-... "Docker-produced images will continue to work in your cluster with all runtimes, as they always have." Dockerfile…

To disambiguate it’s necessary to separate Docker the runtime from OCI image format, commonly still referred to by a lot of people colloquially as “Docker Images”. Docker the desktop software, file format and CLI is still very much used professionally to build and test OCI images, which then run in Kubernetes. Docker as a container runtime platform (and orchestration with Swarm) is what is generally going out of vogue.

Although a pattern I commonly see these days with a lot of OSS projects is that oftentimes they provide a docker-compose.yaml even though no one at any reasonable scale is running Docker Compose in production. This is simply because Kubernetes setups are complicated, weighty, and heterogenous, and often not running on your local machine and Docker Compose is a great way to do a hello world style demo of your container-orchestrated app (because everyone still uses Docker Desktop).

Post reply on HN