Hello everyone,
I freshly installed a debian 12 and updated it to the latest version with the latest docker.
I am aware, that there are multiple Posts, that deal with this issue, but nothing seems to help. I also googled my A off and consulted ChatGPT to no avail.
I installed docker with the official documentation with a dedicated docker user with sudo privileges. I put the files into the docker users home directory.
When I run it as is, it tells me "The bot will not run as root-user" and the volumes specified in the docker-compose-file have root:root permissions. Then I edited the docker-compose.yml file and added the line
user: "UID:GID"
with the docker users UID and GID. When I run it now I get permission erros. An excerpt:
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/TeamSpeak3-Client-linux_amd64': Operation not permitted
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/config.ini.configured': Operation not permitted
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/entrypoint.sh': Operation not permitted
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/tts/tts_service_x86_64.nexe': Operation not permitted
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/tts/voice_lstm_de-DE.zvoice': Operation not permitted
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/tts/voice_lstm_en-US.zvoice': Operation not permitted
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/tts': Operation not permitted
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/libavcodec.so.59': Operation not permitted
and so on. Why does it even create files in the opt folder? I also added the User to the sudo and root group and ran it with sudo, which I actually dont want, because I just want to run it as the user.
My docker-compose file is fairly simple:
services:
sinusbot:
image: sinusbot/docker
restart: always
user: "1003:1003"
ports:
- 8087:8087
volumes:
- ./scripts:/opt/sinusbot/scripts
- ./data:/opt/sinusbot/data
Sorry, my linux knowledge is kinda limited. It always worked like a charm on my old server (centos7 until I updated the image with the same "do not run as root" info). I'd appreciate your help.
I freshly installed a debian 12 and updated it to the latest version with the latest docker.
I am aware, that there are multiple Posts, that deal with this issue, but nothing seems to help. I also googled my A off and consulted ChatGPT to no avail.
I installed docker with the official documentation with a dedicated docker user with sudo privileges. I put the files into the docker users home directory.
When I run it as is, it tells me "The bot will not run as root-user" and the volumes specified in the docker-compose-file have root:root permissions. Then I edited the docker-compose.yml file and added the line
user: "UID:GID"
with the docker users UID and GID. When I run it now I get permission erros. An excerpt:
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/TeamSpeak3-Client-linux_amd64': Operation not permitted
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/config.ini.configured': Operation not permitted
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/entrypoint.sh': Operation not permitted
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/tts/tts_service_x86_64.nexe': Operation not permitted
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/tts/voice_lstm_de-DE.zvoice': Operation not permitted
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/tts/voice_lstm_en-US.zvoice': Operation not permitted
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/tts': Operation not permitted
sinusbot-1 | chown: changing ownership of '/opt/sinusbot/libavcodec.so.59': Operation not permitted
and so on. Why does it even create files in the opt folder? I also added the User to the sudo and root group and ran it with sudo, which I actually dont want, because I just want to run it as the user.
My docker-compose file is fairly simple:
services:
sinusbot:
image: sinusbot/docker
restart: always
user: "1003:1003"
ports:
- 8087:8087
volumes:
- ./scripts:/opt/sinusbot/scripts
- ./data:/opt/sinusbot/data
Sorry, my linux knowledge is kinda limited. It always worked like a charm on my old server (centos7 until I updated the image with the same "do not run as root" info). I'd appreciate your help.
Last edited: