DEV Community

Cover image for Stop Using Docker like its 2015

Stop Using Docker like its 2015

Jonas Scholz on April 19, 2025

Docker has grown up. Have you? Back in 2015, Docker was shiny and new. You probably ran your first container with something like: docker run -i...
Collapse
 
itsmefdil profile image
Fadilah Riczky

Using docker from 4 years ago and I don't know about docker compose watch , lol

Collapse
 
emboldtyler profile image
Tyler K

came here to say the same thing. looking forward to trying this soon.

Collapse
 
code42cate profile image
Jonas Scholz

tbf thats still a relatively new feature i think!

Collapse
 
nevodavid profile image
Nevo David

insane how many folks still do the old stuff - switching up even a couple habits makes a way bigger difference than youd think

Collapse
 
kurealnum profile image
Oscar

I use docker compose in dev & production all the time. Works seamlessly.

Collapse
 
mannuelf profile image
Mannuel

Thank you I needed this 😅

Collapse
 
code42cate profile image
Jonas Scholz

Youre not alone 😆

Collapse
 
mrmayankarora profile image
Mr. Mayank Arora

I loved reading it. I will try to implement these shortly.

Collapse
 
code42cate profile image
Jonas Scholz

Nice!

Collapse
 
kdemetter profile image
De Metter Kenny • Edited

Most of these are clear to me, but what's the harm of the version field ? Obviously remove when you notice it, but hardly the most urgent to fix ? Or does it cause some issues I'm not aware of ?

Collapse
 
code42cate profile image
Jonas Scholz

not urgent, just overhead :D

Collapse
 
hongphatdev profile image
Pham Hong Phat

This article is really eye-opening to me. Thank you for sharing, Jonas.

Collapse
 
stamper profile image
Alexander Toropov

best adv ever!

Collapse
 
pham_tranthanhphong_652 profile image
Henry Pham

cool! thanks for sharing 😍

Collapse
 
mammadyahyayev profile image
Info Comment hidden by post author - thread only accessible via permalink
Mammad Yahyayev

Great article, thanks for sharing.

I have a FREE e-book related to Docker Interview Questions.

You can access it from here

Type your email to receive upcoming editions for free when it is released.

Happy reading!

Collapse
 
devizer profile image
devizer

default root user is ok, because the core of Docker is full control in a sandbox by design.

Collapse
 
code42cate profile image
Jonas Scholz

that assumes that your sandbox is always going to be 100% secure, which by definition is pretty much impossible and happend before (CVE-2022-0847, CVE-2019-5736)

Collapse
 
devizer profile image
devizer

the security problem in insecure environment (linux) is not related to docker only.

Thread Thread
 
code42cate profile image
Jonas Scholz

Yes, of course. But if your kernel is compromised, a root container can make it just a bit worse. Defense in depth still applies here imo

Collapse
 
mbart13 profile image
Michal

It's simply not true about healthchecks. Docker or docker compose will not restart service when it's not healthy, it will only mark it as such. Docker Swarms can do that

Some comments have been hidden by the post's author - find out more