4 ms·
This is the exact class of problem that docker itself attempts to avoid. This is why I run docker-compose inside a docker container, so I can control exactly wh
by LethargicStud 7y ago
This is the exact class of problem that docker itself attempts to avoid. This is why I run docker-compose inside a docker container, so I can control exactly what it has access to and isolate it. There's a guide to do so here[1]. It has the added benefit of not making users install docker-compose itself - the only project requirement remains docker.
1: https://cloud.google.com/community/tutorials/docker-compose-on-container-optimized-os https://cloud.google.com/community/tutorials/docker-compose-...
- djsumdog 7y ago> docker-compose inside a docker container Do you use Docker-in-Docker or do you mount the docker socket inside your docker-compose container? Oh dear god .. it's Docker all the way down.
- LethargicStud 7y agoMount the docker socket. There's some quirks with storage volume paths. Also, security implications. Was not super hard to get working though. I'd love to go straight to containerd or even basic linux containers but I'm not willing to run kubernetes on my personal machine and haven't found any ergonomic enough ways to run containers.
- hosh 7y agoI'm more than willing to run K8S on my personal machine in the form of microk8s, k3s, minikube, and similar cut-down versions of k8s.
- arcticfox 7y agoThe others are probably fine, but for anyone thinking about this, minikube uses 50% CPU even on powerful machines for no reason [0]. I switched to kind and it works perfectly, super lightweight. [0] https://github.com/kubernetes/minikube/issues/3207 https://github.com/kubernetes/minikube/issues/3207
- hosh 7y agoI have used minikube before. Back when it was using localkube, it was ok. It isn't as much now. (Now, it uses kubeadm to bring up the full suite). microk8s might not give as much gains. k3s from Rancher actually cuts out a lot of code, and from I hear, can run fine on Rapsberry Pis. I have not heard of "kind", but neat.
- verdverm 7y agoUsing the KVM driver reduces minkube cpu waste a lot, only supported on Linux...
- idnefju 7y agodo you have any article links about your kind setup?
- hosh 7y agoI don't know about the other guy's setup, but here's the github repo: https://github.com/kubernetes-sigs/kind https://github.com/kubernetes-sigs/kind KIND - Kubernetes In Docker
- seabrookmx 7y agoCheck out https://podman.io https://podman.io? Like docker (uses CRI images) but daemonless.
- yjftsjthsd-h 7y agoI thought it didn't even support compose like functionality? Or did they add that now?