|
|
|
|
|
by augustusseizure
1756 days ago
|
|
I just started working on a cli tool to easily create, manage, and spin up dev environments in docker containers. The
initial impetus for starting the project was to try out Doom Emacs without messing with my current Emacs setup, so an
example session could be: dv new emacs dev-img-emacs:latest dv start emacs dv conn emacs The first line creates a new "development environment" named emacs, based on the docker image dev-img-emacs:latest.
The second line starts up a docker container based on the saved image. The third line connects to the running image
via mosh (or ssh). Mostly I just meant to use it as a learning experience, but it's actually been really convenient in a lot of ways, so
I think I might develop it further. |
|
LXD container instances are much better suited for portable dev environments. They are persistent by default and are intended to run multiple processes within a container instance. They can also be copied/migrated between lxd agents.
In contrast, docker was created to run a single ephemeral process per container. It's nice in production environments, but its also a huge pain for some tasks. That's why were seeing folks create things like docker s6-overlay.