3 ms·
Okay, I know how docker can mean containers, and I agree that Dockerfiles are quite similar to makefiles, but how does docker relate to source control?
by yjftsjthsd-h 6y ago
Okay, I know how docker can mean containers, and I agree that Dockerfiles are quite similar to makefiles, but how does docker relate to source control?
- m463 6y agoDocker keeps a history of changes to the container with layers, and you might arguably treat it like version control. maybe "docker history" ~ "git log"?? tags=branches? Docker isn't one thing, so it's ALL grey. It's not really make. It's not really a vm. It's not really even reproducible. One thing is for certain - it's hard to describe docker to new folks so they get it. "it's sort of like netflix, for cows, but in space..."
- Denvercoder9 6y agoThat's the most insane use of Docker I've ever heard of.
- m463 6y agoI'm not saying people use it for vc, it's how docker works. It optimizes your containers using layers and if you do "FROM ubuntu:18.04" in 3 dockerfiles, you only have one copy of the ubuntu stuff.