![]() These can be added to the /etc/fstab and that way the file shares are auto mounted. Examples of this are photo directories, my web site content etc. The net result is that data is not duplicated, and is sustainable going forward. The Linux host then mounts file shares and passes that data onto the container. That way it is centralized, and again easy to backup/manage etc. I also continue to use a windows file share for the majority of my data. I use logical volume manager for these luns making it super easy to increase the size as needed. This LUN then mounts as volumes into the container (-v option for docker run), replacing container’s directories. Otherwise your fussing to try and find where a specific config file for the container is stored on the host. This also makes, editing, backing up and managing containers easier. This LUN is then where I store all the configuration data for the container. This makes it easier to move containers around. The approach I chose to take with containers is to dedicate a LUN (a drive), and an IP to each container. Containers also provide some level of isolation for the app. Although, given I’m working in my home lab, I have not been able to play with the automated solutions. And with automation this can be done hands off. Take web sites for example … spin up additional containers when you need them, and spin them down when you don’t. Containers are ideally suited for tasks that require dynamic horsepower. The memory footprint of containers is also super small. Ok so why bother with containers? Well … they are much smaller than VM making them a lot easier to move around workloads, ie more portable. ![]() It’s easier, and you will have better success with a VM running Ubuntu (or Redhat) and then running the containers under that. And while you can run linux containers under docker for windows, why bother. It’s brittle, poorly implemented, and there are not a lot of windows containers anyway. Ok, at this point I’ve published a couple articles on docker on containers, I figured it was time to create a summary of what I’ve learned to date. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |