why don't signals work in docker?

  Рет қаралды 6,536

anthonywritescode

anthonywritescode

Күн бұрын

Пікірлер: 48
@maleldil1
@maleldil1 16 күн бұрын
Manually typing the exact same characters in a Dockerfile so you already have it cached is lowkey impressive.
@thibautdecombe1975
@thibautdecombe1975 10 күн бұрын
Casually talked about this to a coworker at lunch. He literally faced this issue 2 hours later and was pretty happy we had this little talk. Great timing with your video, and great content as always. Thanks!
@anthonywritescode
@anthonywritescode 10 күн бұрын
honestly there's probably years wasted per day waiting for containers to die due to this!
@Reecepbcups
@Reecepbcups 16 күн бұрын
You have definitely written a *few* Dockerfiles in your time that was awesome
@anthonywritescode
@anthonywritescode 16 күн бұрын
too many!
@sillybuttons925
@sillybuttons925 16 күн бұрын
Never knew why I needed dumb init
@anthonywritescode
@anthonywritescode 16 күн бұрын
missed you on stream! hope you're doing well
@martijnvandebeek6805
@martijnvandebeek6805 16 күн бұрын
I was stuck on this problem at work for a week. Thank you Anthony!
@yalnisinfo
@yalnisinfo 16 күн бұрын
i love docker bro, it takes me some time to set it up but it saves so much time and make it reliable to get your services running both locally and in cloud quickly
@jeremywang3419
@jeremywang3419 13 күн бұрын
Good to know! Thanks for sharing!
@valtterihuuskonen4207
@valtterihuuskonen4207 16 күн бұрын
I believe Podman uses catatonit while docker uses tini for the --init flag.
@anthonywritescode
@anthonywritescode 16 күн бұрын
ahah you got me there, I'm using podman with an alias
@bojandimic3914
@bojandimic3914 16 күн бұрын
Thank you for the content Anthony!
@GuyMichaely
@GuyMichaely 16 күн бұрын
Do you have/can you make a video about the non flushing behavior at 2:01? I've never seen that happen with python's print, under what conditions does it not automatically flush?
@anthonywritescode
@anthonywritescode 16 күн бұрын
I do! you can search for "line buffering anthonywritescode" and I've got a video on it!
@drinductor8150
@drinductor8150 15 күн бұрын
2:38 any reason not to use heredocs syntax for multiline run commands? My first thought was that it's just a demo, but then I considered maybe you have a good reason to prefer the '&& \' method instead
@anthonywritescode
@anthonywritescode 15 күн бұрын
the heredoc syntax is relatively new and I can never remember exactly how it is supposed to work (and being new it's less portable). I know this works (and relatively without downsides) so no reason to change
@drinductor8150
@drinductor8150 15 күн бұрын
​@@anthonywritescodewhat about exit code propagation? I know the repeated && would make sure all lines are executed or return an error code but I'm not sure about heredocs
@anthonywritescode
@anthonywritescode 15 күн бұрын
sounds like all the more reason for me to stick with `&&`
@darkshoxx
@darkshoxx 16 күн бұрын
Very much looking forward to these "unconventional uses" now 😆
@anthonywritescode
@anthonywritescode 15 күн бұрын
the first one will surprise you!
@fifamessi007fifamessi00
@fifamessi007fifamessi00 16 күн бұрын
do u have video explain the apt flags u used?
@anthonywritescode
@anthonywritescode 15 күн бұрын
I do in fact! (well actually two) -- if you search "apt-get anthonywritescode" there should be one about an intro to apt and another about why I use the particular invocation in docker!
@essamgouda1609
@essamgouda1609 16 күн бұрын
very cool as always !
@BrunoBernard-kn6vt
@BrunoBernard-kn6vt 15 күн бұрын
why there is different init systems for docker ? aren't they similar to dumb-init ?
@anthonywritescode
@anthonywritescode 15 күн бұрын
a bunch of different people solved the same problem in a bunch of slightly different ways!
@BrunoBernard-kn6vt
@BrunoBernard-kn6vt 15 күн бұрын
@ I get your point, maybe i should look into those differences
@GilgamoreRed
@GilgamoreRed 12 күн бұрын
Completely off the wall question(s). Will prettier ever come back to pre-commit? Should it? How do you, or do you leverage it?
@anthonywritescode
@anthonywritescode 12 күн бұрын
there's nothing stopping you from using it -- I'm just done doing free labor for prettier when they keep intentionally breaking it. personally I don't use it
@GilgamoreRed
@GilgamoreRed 11 күн бұрын
@@anthonywritescode Thank you for the reply. It seemed pretty abrupt when it was discontinued. I appreciate all the hard work you put into it. Shame it didn't work out.
@husanaaulia4717
@husanaaulia4717 16 күн бұрын
So the solution is to use dumb init or use bash?
@anthonywritescode
@anthonywritescode 16 күн бұрын
any init system will do! bash happens to catch one signal which surprised me!
@husanaaulia4717
@husanaaulia4717 16 күн бұрын
@anthonywritescode thank you, I'll try later
@AmirhessamTahmassebi
@AmirhessamTahmassebi 16 күн бұрын
nice haricut
@bacon4life
@bacon4life 16 күн бұрын
Nice thumbnail
@jeroenvanrenterghem6163
@jeroenvanrenterghem6163 16 күн бұрын
Used tini for this.
@deadeye1982a
@deadeye1982a 16 күн бұрын
I hate Docker.
@janhwillems10000
@janhwillems10000 16 күн бұрын
Why?
@krux02
@krux02 16 күн бұрын
me, too.
@krux02
@krux02 16 күн бұрын
@@janhwillems10000 For me it is mostly these three things: 1. Complicated to learn (needs time and effort to learn and understand) 2. Adds performance costs 3. Doesn't solve a problem that I have other than someone else's demand to care for it.
@orterves
@orterves 16 күн бұрын
I love docker 1. it's easy to learn 2. adds minimal overhead for the benefits it provides 3. solves multiple problems, such as - going from "works on my machine" to production with consistency - simplifies experimenting with dependency upgrades - providing instant identical dev environments with devcontainers, etc
@janhwillems10000
@janhwillems10000 15 күн бұрын
1: Learn it. 2: That is simply NOT true. (see 1) 3. That could very well be true; good luck!
your tests should have 100% coverage
18:56
anthonywritescode
Рет қаралды 6 М.
Making Smallest Possible Linux Distro (x64)
27:43
Nir Lichtman
Рет қаралды 108 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Docker Image BEST Practices - From 1.2GB to 10MB
7:15
Better Stack
Рет қаралды 158 М.
Why Your Backend Shouldn't Serve Files
19:40
Boot dev
Рет қаралды 80 М.
unconventional uses of dumb-init
7:03
anthonywritescode
Рет қаралды 2,8 М.
AI Risks No One is Talking About
14:09
TJ DeVries
Рет қаралды 54 М.
I can't use a Mac without this app.
13:43
Theo - t3․gg
Рет қаралды 117 М.
Using Docker just got a whole lot easier
5:05
Coderized
Рет қаралды 84 М.
Now I Know Why Most People Don’t Use gRPC
19:11
ArjanCodes
Рет қаралды 63 М.
Advent of Neovim: Why Neovim?
10:21
TJ DeVries
Рет қаралды 58 М.
Linux changed in 2024, but 2025 will be MUCH BIGGER
19:36
The Linux Experiment
Рет қаралды 203 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН