xorilog / docker-telegram

Dockerfile for a Telegram gui client
65 stars 32 forks source link

QThread::start: Thread creation error (Operation not permitted) #25

Closed pavo976 closed 3 weeks ago

pavo976 commented 1 year ago

Hello.

After starting the docker container, nothing happens. Inside the docker container, the processes show the running binary and nothing else.

<jemalloc>: arena 0 background thread creation failed (1)
Detected locale "C" with character encoding "UTF-8", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
QThread::start: Thread creation error (Operation not permitted)

container version: xorilog/telegram:latest

$ dpkg -l | \grep docker | head -1
ii  docker-ce                                        5:20.10.6~3-0~ubuntu-focal                    amd64        Docker: the open-source application container engine
$
$ cat /etc/*release | head -2
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
$

docker run

docker run --rm -it --name telegram \
       --hostname=$(hostname) \
       -e DISPLAY=unix$DISPLAY \
       -e PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native \
       -v /tmp/.X11-unix:/tmp/.X11-unix \
       -v "/home/$(whoami)/.Xauthority:/home/user/.Xauthority" \
       -v $XDG_RUNTIME_DIR/pulse:$XDG_RUNTIME_DIR/pulse \
       -v /etc/localtime:/etc/localtime:ro \
       -v /opt/data/:/home/user/.local/share/TelegramDesktop/ \
       xorilog/telegram