
docker run options :
--restart unless-stopped : Automatically restarts the container unless explicitly stopped.
--pull=always : Ensures the image is always pulled before starting, even if it exists locally.
-e DOMAIN_NAME=... : Sets the domain name for your ClipBucket V5 instance.
-e MYSQL_PASSWORD=... : Specifies the root password for MySQL.
-e UID=1000 : Sets the user ID (UID) for the application running inside the container. 1000 is the typical UID for the first user on Linux systems. If you want a different user, adjust the UID.
-e GID=1000 : Sets the group ID (GID) for the application running inside the container. Like UID, this is often 1000 by default, but it can be adjusted if you want a different group.
-v clipbucket_db:/var/lib/mysql : Maps a persistent volume for the database.
-v clipbucket_files:/srv/http/clipbucket : Maps a persistent volume for ClipBucket files.
-p 80:80 : Maps port 80 on the host to port 80 on the container, making the application accessible via the host machine.
--name clipbucket : Names the container for easier management.
-d : Runs the container in detached mode.
-v /path/to/host/folder:/srv/http/clipbucketWith bind mounts, Docker does not modify file permissions. If the UID and GID of the container's user do not match those of the host system, there can be permission issues. For example, files created by the container might not be accessible from the host and vice versa.
-e UID=1000 \ -e GID=1000If you use Docker volumes (not bind mounts), UID and GID are not necessary since Docker manages the permissions internally. To find the UID and GID of a user on your host system (Debian), you can run the following commands:
id usernameReplace username with the name of the user. For example, for the user john, use id john.