-
Hi, Currently I use code-server with a custom 5GB+ custom image, where I manually install everything through a mix of My plan is to move to k8s, and also use DinD, as not having localhost is starting to become more and more problematic. I was hoping people could give me advice on best practises for building docker images, volume mounting and accessing docker when I do this move, for example:
Also, if people think I am missing something, please let me know. I know coder exists, but, correct me if I am wrong, I will still need to manage my own images if I want to have the languages and different components pre-installed? There's no equivalent to Thanks in advance :)) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@bpmct has worked with a lot of different teams so he might have a suggestion or two! |
Beta Was this translation helpful? Give feedback.
-
I'd actually recommend running the Sysbox container runtime on Kubernetes and installing code-server and Docker into a base container. It has the best isolation and you can use more Docker features.
We typically see teams build one giant, base image with all the dependencies. However, you could also mount the same volume in multiple containers in a pod if you want some process isolation for the services but needed to share the files.
devcontainer support is coming! coder/coder#5559. There are ways to get devcontainers working with Coder today, but it's definitely a workaround. The example I have uses a VM with nested Docker, not dind. However, that would also be possible. |
Beta Was this translation helpful? Give feedback.
I'd actually recommend running the Sysbox container runtime on Kubernetes and installing code-server and Docker into a base container. It has the best isolation and you can use more Docker features.
We typically see teams build one giant, base image with all the dependencies. However, you could also mount the same volume in multiple containers in a pod if you want some process isolation for the …