Docker Questions


Recommended Posts

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.

Link to comment

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.

Link to comment

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.
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.