a frogDocker

docker ? i hardly know her !

so docker is this pretty cool software where instead of trying to manqge the permissions of every service on ur sever and making sure its secure, you can just run all of them in their own VM (not exactly but kinda) also u dont gotta worry aboit conflicting dependencies or whatever

also it really annoyed me that none of the tutorials used sudo for the docker commands while u literally need to do that for every command. maybe im missing something idk.

basic blocks

theres like 3ish main things u gotta understand to use docker (there are also networks and prolly way more stuff i dont know about, this is just really basic stuff i figured out)

containers

its the most important part of docker, its a way to run services basically completely isolated from eachother and the host using fancy linux tricks i think. so its pretty similar to a vm except it doesnt really emulate hardware and is still running in the same os [so yea there could be exploits that escape containers but thats really rare i think]

to make a container from an image i think u gotta do docker run <imagename>. it will download the image for u if u dont have it. BUT! dont use this command. i mean it works but docker compose is way better. its a bit complicated but it makes everything so much nicer

images

an image is basically a template to create a container. u can download images with docker pull <imagename>

volumes

since docker containers are frequently deleted and recreated, u might want to have some data persist. thats what volumes r for! so basically when you create a container, you can say "hey link this folder inside the container and this volume, so when something gets written in the folder, its saved in the volume instead". thats how i understand it at least. this isnt a very good explanation cuz im real tired ill try and fix this some other time maybe

compose

one of my favorite things ever abt docker. it lets you declaratively