Live data from Hacker News

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

news.ycombinator.com

71–80 of 84 posts

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

#71

Docker starts to become super useful when you have an application you are deploying that has a few `service` dependencies. Typical deployments include something like 1) your reverse proxy, Nginx/Caddy 2) your "app", or API, whatever. pick whatever you want, a Rails API, a Phoenix microservice, a Django monolithic app, whatever you want. 3) your database. Postgres, whatever 4) Redis - not just for caching. Can use it…

> I prefer docker compose to Kubernetes because I am not a megacorp. You just define your different services, let them run, expose the right ports, and then things should "just work"

Kubernetes scales down pretty well, there's a few canned single-machine versions. I've been playing with k3s lately at work (if this works out, it should lead to things running on a proper HA cluster), and I'll probably also move over some of the standalone containers I have at home (which are all single-instance standalone things, currently using podman as a systemd service).

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

#72
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…

> start with understanding what containers are

Docker implemented in around 100 lines of bash: https://github.com/p8952/bocker

This is the most mindblowing example for enterprise security teams that think Docker is a new threat on a single tenant Linux host.

No, buddies, all this stuff is already there. If you were fine with your visibility before*, you're still fine. Go find a real problem while people play with their developer dopamine.

* NARRATOR: They shouldn't have been.

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

#73

Docker starts to become super useful when you have an application you are deploying that has a few `service` dependencies. Typical deployments include something like 1) your reverse proxy, Nginx/Caddy 2) your "app", or API, whatever. pick whatever you want, a Rails API, a Phoenix microservice, a Django monolithic app, whatever you want. 3) your database. Postgres, whatever 4) Redis - not just for caching. Can use it…

> I prefer docker compose to Kubernetes because I am not a megacorp. You just define your different services, let them run, expose the right ports, and then things should "just work" Kubernetes scales down pretty well, there's a few canned single-machine versions. I've been playing with k3s lately at work (if this works out, it should lead to things running on a proper HA cluster), and I'll probably also move over so…

Docker compose is still orders of magnitude easier to use and often sufficient.

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

#74
post #20
post #18

Earlier quoted context omitted.

Kubernetes and docker solve different problems. One is a container runtime, the other is a container orchestration tool. A mega-corp using Kubernetes can still use Docker, the two can work together. "Docker compose" (not the same thing as docker) works great at single machine scale/local development environments, but isn't really designed to scale much beyond this to production environments, multiple servers and data…

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

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

#75
Go have a look at Gitlab's "Review Apps" -- this provides a mechanism that spins up branch-specific environments, and destroys them when the branch merges -- which sounds like what you are after. This is not so much about Docker (per se) but more about how to set up CI/CD related infrastructure.

We use this mechanism with AWS, the serverless framework and some terraform. It works well. With us, the only thing remotely container related is the runtime context for the CI/CD pipeline.

That being said, you could make this work against a k8s cluster, fargate, or just some build servers.

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

#77
I would say you need to learn about: - docker compose: because you can describe your entire project’s environment in it - docker composes environment file and projects - ci/cd system of choice - probably something like ansible to be the glue between ci/cd and docker

Good luck!

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

#78

I'm not a fan of video tutorials, but Bret Fisher's[0] docker stuff is the exception. The production quality is flawless, the content is straight to the point, and his instruction is amazing. I cannot recommend it enough [0] https://www.udemy.com/user/bretfisher/

Oh thanks! Coupons at www.bretfisher.com/courses

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

#79
post #62

I'm not a fan of video tutorials, but Bret Fisher's[0] docker stuff is the exception. The production quality is flawless, the content is straight to the point, and his instruction is amazing. I cannot recommend it enough [0] https://www.udemy.com/user/bretfisher/

I can vouch for Bret Fisher's content! Excellent instructor and great person.

Thanks nunez!

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

#80
My docker mastery course just had 17 videos added on GitHub actions, my fav automation tool. It has vids and working yaml for container build/test workflows (yaml is open source at GitHub.com/bretfisher). I'm actually doing a workshop next week in Tampa at Civo Navigate called "Docker 101 in 2023" lol Course coupons at bretfisher.com
Post reply on HN