There are many times we have Bootstrapping scripts to manage a highly custom docker setup, while tools like docker-compse and Dockerfile are good for many things, and even when we can just rely on those tools, we often find ourselves writing scripts for repeated actions during development.
These often contain complex one-liners in the form of docker exec
commands. I was hoping to find a more legible way to write these without condensing things in to one line or across multiple exec commands. What I found was I could not only solve for that, but I could include information from the Host computer in to the environment and even stack these Heredoc commands for more advanced usages. I will show a simple one where wed like to inject a simple variable in to the Container's environment (for this one run) as well as execute a Python command within [Djangos Admin (manage.py
)](https://docs.dja