robby0328 Posted August 2, 2016 Share Posted August 2, 2016 I've done a lot of research on dockers. I understand how to create a custom image and I understand how to deploy a container now. However I do have a few questions. 1) Data As best practice all data IE SQL tables, Configs, Etc should be stored "Outside the container" 2) Access What would best practice be for SSHing into a container just to take a peek openssh something within unraid? Shouldn't be needed? WebUI ssh? Thank you for any help it is appreciated. Quote Link to comment
trurl Posted August 2, 2016 Share Posted August 2, 2016 1) Generally, you would store things outside the container if you need to easily access it from outside the container, or anything that requires a significant amount of storage. 2) docker exec -it dockername /bin/bash Quote Link to comment
roland Posted August 2, 2016 Share Posted August 2, 2016 1) Generally, you would store things outside the container if you need to easily access it from outside the container, or anything that requires a significant amount of storage. Or if you want it to survive a complete reinstall of the docker. Quote Link to comment
petern Posted August 2, 2016 Share Posted August 2, 2016 1) Generally, you would store things outside the container if you need to easily access it from outside the container, or anything that requires a significant amount of storage. Or if you want it to survive a complete reinstall of the docker. Or switch from one maintainer's docker to another. Quote Link to comment
CHBMB Posted August 2, 2016 Share Posted August 2, 2016 Or switch from one maintainer's docker to another. That's not foolproof though as structures change between authors as do versions, although it's often possible if you do try, it's by no means guaranteed.... Quote Link to comment
Squid Posted August 3, 2016 Share Posted August 3, 2016 1) Generally, you would store things outside the container if you need to easily access it from outside the container, or anything that requires a significant amount of storage. Or if you want it to survive a complete reinstall of the docker. To expand upon this, there are times when it is necessary and/or wanted to recreate the docker.img file. If any files (metadata, db, etc) are stored within the docker.img file then they will be lost when it is recreated. If the metadata/db is stored outside the image, then the image can be recreated to your hearts content without worrying about anything - a simple download and everything is back the way it was. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.