I have a Wordpress installation running in a Docker instance. I'm having a problem with e-mail and it's likely due to sendmail
missing. If indeed I have to add sendmail
to the container, what is the intended way to do this? I've seen the lxc hacks but it's always stated or at least implied that this isn't within the intentions of how Docker is supposed to work. I decided on Docker for my Wordpress site because I already had a running system with HTTP services installed and the idea of basically sectioning off everything (Apache, PHP, MySQL, etc.) really appealed to me. I can then just backup the whole container and move it to another system in entirety if need be.
To state my question as directly as possible, what method of modifying a running container is most appropriate for the intended design of Docker? Should I just attempt the ad-hoc bash prompt via lxc-attach as mentioned above? Or is there a more appropriate way like making the container a new image (to preserve all my WP data) and modifying the image and then re-starting the container?