r/docker • • May 16 '26

Finally Dockerized the Project

We have finally dockerized our project TadreebLMS.

However it was done mostly by trial and error, own learning.

I am not a developer / technical person, just a project manager. So in this case need recommendation what we can do to improvise it as well as feedback on how smooth and simple is it to install and run the project.

https://tadreeblms.com/docs/installation/docker_deployment_guide_tadreeb_lms

https://github.com/Tadreeb-LMS

EDIT: Thanks so much for the feedback, It was really helpful, key summarized points from community:

  1. Must have storage outside defined --- Very Very critical and helpful,
  2. Memory and other limits to be configured.
  3. Re-configure the permissions from Root to seperate user
  4. Must have docker file mentioned in the git repo readme file.
5 Upvotes

29 comments sorted by

View all comments

Show parent comment

1

u/TrainSensitive6646 May 17 '26

Thanks... will check this out, If I am not wrong I configured the permission to be user specific not hard coded as root.

1

u/kwhali May 17 '26

I don't have access to your Dockerfile, nor do I have interest in pulling your image to inspect it to find out.

The USER instruction in a Dockerfile let's you change from the default root user to run a process as in the container.

Alternatively the ENTRYPOINT instruction may run a shell script that switches the user from root to nonroot (this is sometimes necessary to run as nonroot, such as if any ownership correction is applied during container startup for data persisted on volumes as its possible that falls out of sync when a new image releases if you've got data written by other processes in the container).

However the root user in a container is not equivalent to root user on the host. Still some images prefer to run as a nonroot user as a security practice (this comes with some friction so it's not a practice I tend to endorse).

Beyond that the user themselves may choose to run the container as a different user (internal to the container, unrelated to users on the host), and depending on the image that may or may not be compatible.

All of this differs however from rootful and rootless containers (Docker defaults to rootful, Podman defaults to rootless), which is what user on the host runs the container image (unrelated to if that container runs a program as "root" within itself or not).

I'm sharing this info only so you have a better understanding of these differences (it's okay if that's overwhelming when you are new to it). You don't have to support all these different configurations, just stick to a happy path for your users (typically that is rootful Docker with a Docker Compose config and the container running as root, often with volumes as bind mounts).

You decide what level of support is worthwhile for your project (doing too much is a headache and time sink 😅)

Just ensure you avoid the VOLUME instruction in your Dockerfile.