Hi, I am newbie, but really interested in Docker.
I have experience working with LXC containers.
I usually have some kind of web environment for running web applications locally (ex. MAMP, XAMMP …). But I am not satisfied with them. I know how to configure each of these components by myself. but these applications provide limited access.
So I decided to use Docker for creating required image for my projects.
Basic ideas is to have.
- A Docker container with the LAMP stack running. I know the best practice is to use separate container for single application, but I really want to keep a single container with LAMP stack to keep one container for one purpose.
- Ability to use a host machine folder inside container, to mount my project from the host to the web apps directory inside a docker container.
- I need persistence. I want a MySQL database to save its state between launches. But, it would be great if a whole container to preserve its state.
I’ve been working with LXC containers for sometime, in general I need exactly the same features. I use a LXC container as a simple Linux machine: install updates & required packages, configure settings files … exactly the same way I do on a real Linux Machine.
So maybe I am miss something and docker works in another way, but as far is know this is just an extension for LXC containers.
Please suggest what steps should I follow in order to achieve desired result.
Thanks.