==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/stderr <== ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/stdout <== ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log <== ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/message.log <== DEBUGNOTE[15:48:23,105]: check_host(): Command tty failed. Guess if running on console: yes DEBUGNOTE[15:48:23,150]: check_host(): ps can watch root processes: yes x11docker[15:48:23,164]: Image name: pccastor_obzy7v_wallet:latest Container command: DEBUGNOTE[15:48:23,190]: host user: debian 1000:1000 /home/debian x11docker WARNING: User debian is member of group docker. That allows unprivileged processes on host to gain root privileges. DEBUGNOTE[15:48:23,471]: storeinfo(): cache=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285 DEBUGNOTE[15:48:23,482]: storeinfo(): stdout=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/stdout DEBUGNOTE[15:48:23,492]: storeinfo(): stderr=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/stderr DEBUGNOTE[15:48:23,525]: storeinfo(): x11dockerpid=3921 DEBUGNOTE[15:48:23,583]: x11docker version: 6.9.0 Backend version: Docker version 20.10.10, build b485636 Host system: "Debian GNU/Linux 10 (buster)" Host architecture: amd64 (x86_64) Command: '/usr/bin/x11docker' '-q' '--init=tini' '--xvfb' '--size=1980x1200' '--lang=fr' '--keymap' 'fr-latin9' '--pulseaudio' '--home' '--homebasedir=/var/www/html/pccastor-com/wp-content/plugins/Loamok_xpra_docker_admin/system_admin-tpls/vms/pccastor_obzy7v/home' 'pccastor_obzy7v_wallet:latest' Parsed options: -q --init 'tini' --xvfb --size '1980x1200' --lang 'fr' --keymap 'fr-latin9' --pulseaudio '' --home '' --homebasedir '/var/www/html/pccastor-com/wp-content/plugins/Loamok_xpra_docker_admin/system_admin-tpls/vms/pccastor_obzy7v/home' -- 'pccastor_obzy7v_wallet:latest' DEBUGNOTE[15:48:23,590]: Dependency check for --xvfb: 0 DEBUGNOTE[15:48:23,594]: Dependencies of --xvfb already checked: 0 DEBUGNOTE[15:48:23,598]: Dependencies of --xvfb already checked: 0 DEBUGNOTE[15:48:23,602]: storeinfo(): xserver=--xvfb DEBUGNOTE[15:48:23,637]: container user: debian 1000:1000 /home/debian x11docker[15:48:23,681]: Sharing directory /var/www/html/pccastor-com/wp-content/plugins/Loamok_xpra_docker_admin/system_admin-tpls/vms/pccastor_obzy7v/home/pccastor_obzy7v_wallet with container as its home directory /home/debian ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/xinit.log <== ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/stderr <== ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/stdout <== ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log <== ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/message.log <== DEBUGNOTE[15:48:23,105]: check_host(): Command tty failed. Guess if running on console: yes DEBUGNOTE[15:48:23,150]: check_host(): ps can watch root processes: yes x11docker[15:48:23,164]: Image name: pccastor_obzy7v_wallet:latest Container command: DEBUGNOTE[15:48:23,190]: host user: debian 1000:1000 /home/debian x11docker WARNING: User debian is member of group docker. That allows unprivileged processes on host to gain root privileges. DEBUGNOTE[15:48:23,471]: storeinfo(): cache=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285 DEBUGNOTE[15:48:23,482]: storeinfo(): stdout=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/stdout DEBUGNOTE[15:48:23,492]: storeinfo(): stderr=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/stderr DEBUGNOTE[15:48:23,525]: storeinfo(): x11dockerpid=3921 DEBUGNOTE[15:48:23,583]: x11docker version: 6.9.0 Backend version: Docker version 20.10.10, build b485636 Host system: "Debian GNU/Linux 10 (buster)" Host architecture: amd64 (x86_64) Command: '/usr/bin/x11docker' '-q' '--init=tini' '--xvfb' '--size=1980x1200' '--lang=fr' '--keymap' 'fr-latin9' '--pulseaudio' '--home' '--homebasedir=/var/www/html/pccastor-com/wp-content/plugins/Loamok_xpra_docker_admin/system_admin-tpls/vms/pccastor_obzy7v/home' 'pccastor_obzy7v_wallet:latest' Parsed options: -q --init 'tini' --xvfb --size '1980x1200' --lang 'fr' --keymap 'fr-latin9' --pulseaudio '' --home '' --homebasedir '/var/www/html/pccastor-com/wp-content/plugins/Loamok_xpra_docker_admin/system_admin-tpls/vms/pccastor_obzy7v/home' -- 'pccastor_obzy7v_wallet:latest' DEBUGNOTE[15:48:23,590]: Dependency check for --xvfb: 0 DEBUGNOTE[15:48:23,594]: Dependencies of --xvfb already checked: 0 DEBUGNOTE[15:48:23,598]: Dependencies of --xvfb already checked: 0 DEBUGNOTE[15:48:23,602]: storeinfo(): xserver=--xvfb DEBUGNOTE[15:48:23,637]: container user: debian 1000:1000 /home/debian x11docker[15:48:23,681]: Sharing directory /var/www/html/pccastor-com/wp-content/plugins/Loamok_xpra_docker_admin/system_admin-tpls/vms/pccastor_obzy7v/home/pccastor_obzy7v_wallet with container as its home directory /home/debian ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/xinit.log <== ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/message.log <== DEBUGNOTE[15:48:23,712]: waitforlogentry(): tailstdout: Waiting for logentry "x11docker=ready" in store.info DEBUGNOTE[15:48:23,712]: waitforlogentry(): tailstderr: Waiting for logentry "x11docker=ready" in store.info DEBUGNOTE[15:48:23,735]: storepid(): Stored pid '4406' of 'watchpidlist': 4406 ? 00:00:00 bash DEBUGNOTE[15:48:23,761]: storepid(): Stored pid '4419' of 'watchmessagefifo': 4419 ? 00:00:00 bash x11docker[15:48:23,780]: Virtual screen size: 1980x1200 x11docker[15:48:23,789]: Physical screen size: x11docker WARNING: Option --pulseaudio allows container applications to catch your audio output and microphone input. DEBUGNOTE[15:48:23,891]: storeinfo(): pulseaudiomoduleid=19 x11docker[15:48:23,954]: Generated pulseaudio client.conf: 1 # Connect to host pulseaudio server using mounted UNIX socket 2 default-server = unix:/x11docker/pulseaudio.socket 3 # Prevent a server running in container 4 autospawn = no 5 daemon-binary = /bin/true 6 # Prevent use of shared memory 7 enable-shm = false 8 DEBUGNOTE[15:48:23,982]: storeinfo(): DISPLAY=:105 DEBUGNOTE[15:48:23,995]: storeinfo(): XAUTHORITY=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client DEBUGNOTE[15:48:24,004]: storeinfo(): XSOCKET=/tmp/.X11-unix/X105 DEBUGNOTE[15:48:24,015]: storeinfo(): XDG_RUNTIME_DIR=/run/user/1000 DEBUGNOTE[15:48:24,026]: storeinfo(): Xenv= DISPLAY=:105 XAUTHORITY=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client XSOCKET=/tmp/.X11-unix/X105 XDG_RUNTIME_DIR=/run/user/1000 DEBUGNOTE[15:48:24,059]: X server command: /usr/bin/Xvfb :105 \ -retro \ +extension RANDR \ +extension RENDER \ +extension GLX \ +extension XVideo \ +extension DOUBLE-BUFFER \ +extension SECURITY \ +extension DAMAGE \ +extension X-Resource \ -extension XINERAMA -xinerama \ -extension MIT-SHM \ +extension Composite +extension COMPOSITE \ +extension XTEST \ -dpms \ -s off \ -auth /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/Xauthority.server \ -nolisten tcp \ -screen 0 1980x1200x24 \ x11docker[15:48:24,204]: --init: Found tini binary: /usr/bin/docker-init DEBUGNOTE[15:48:24,208]: storeinfo(): tini=/usr/bin/docker-init DEBUGNOTE[15:48:24,224]: Users and terminal: x11docker was started by: debian As host user serves (running X, storing cache): debian Container user will be: debian Container user password: x11docker Getting permission to run backend with: eval Terminal for password frontend: bash -c Running in a terminal: no Running on console: yes Running over SSH: no Running sourced: no bash $-: hB DEBUGNOTE[15:48:24,230]: storeinfo(): containername=x11docker_X105_pccastor_obzy7v_wallet-latest_55302946285 DEBUGNOTE[15:48:24,726]: docker command: docker run --detach --tty \ --name x11docker_X105_pccastor_obzy7v_wallet-latest_55302946285 \ --user 1000:1000 \ --userns=host \ --cap-drop ALL \ --security-opt no-new-privileges \ --security-opt label=type:container_runtime_t \ --volume '/usr/bin/docker-init':'/usr/local/bin/init':ro \ --tmpfs /run:exec --tmpfs /run/lock \ --volume '/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share':'/x11docker':rw \ --volume '/var/www/html/pccastor-com/wp-content/plugins/Loamok_xpra_docker_admin/system_admin-tpls/vms/pccastor_obzy7v/home/pccastor_obzy7v_wallet':'/home/debian':rw \ --volume '/tmp/.X11-unix/X105':'/X105':rw \ --volume /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/pulseaudio.client.conf:/etc/pulse/client.conf:ro \ --workdir '/tmp' \ --entrypoint env \ --env 'container=docker' \ --env 'XAUTHORITY=/x11docker/Xauthority.client' \ --env 'DISPLAY=:105' \ --env 'PULSE_COOKIE=/x11docker/pulseaudio.cookie' \ --env 'PULSE_SERVER=unix:/x11docker/pulseaudio.socket' \ --env 'USER=debian' \ -- pccastor_obzy7v_wallet:latest /usr/local/bin/init -- /bin/sh - /x11docker/containerrc x11docker[15:48:24,989]: Generated dockerrc: 1 #! /usr/bin/env bash 2 3 # dockerrc: 4 # This script runs as root (or member of group docker) on host. 5 # - inspect image 6 # - pull image if needed 7 # - create containerrc 8 # - set up systemd/elogind cgroup if needed 9 # - run window manager in container or from host if needed 10 11 trap '' SIGINT 12 13 askyesno () 14 { 15 local Choice; 16 read -t60 -n1 -p "(timeout after 60s assuming no) [Y|n]" Choice; 17 [ "$?" = '0' ] && { 18 [[ "$Choice" == [YyJj]* ]] || [ -z "$Choice" ] && return 0 19 }; 20 return 1 21 } 22 checkpid () 23 { 24 [ -e "/proc/${1:-NONSENSE}" ] 25 } 26 escapestring () 27 { 28 echo "${1:-}" | LC_ALL=C sed -e 's/[^a-zA-Z0-9,._+@=:/-]/\\&/g; ' 29 } 30 mysleep () 31 { 32 sleep "${1:-1}" 2> /dev/null || sleep 1 33 } 34 pspid () 35 { 36 LC_ALL=C ps -p "${1:-}" 2> /dev/null | grep -v 'TIME' 37 } 38 rmcr () 39 { 40 case "${1:-}" in 41 "") 42 sed "s/$(printf "\r")//g" 43 ;; 44 *) 45 sed -i "s/$(printf "\r")//g" "${1:-}" 46 ;; 47 esac 48 } 49 rocknroll () 50 { 51 [ -s "$Timetosaygoodbyefile" ] && return 1; 52 [ -e "$Timetosaygoodbyefile" ] || return 1; 53 return 0 54 } 55 saygoodbye () 56 { 57 debugnote "time to say goodbye ($*)"; 58 [ -e "$Timetosaygoodbyefile" ] && echo timetosaygoodbye >> $Timetosaygoodbyefile; 59 [ -e "$Timetosaygoodbyefifo" ] && echo timetosaygoodbye >> $Timetosaygoodbyefifo 60 } 61 storeinfo () 62 { 63 [ -e "$Storeinfofile" ] || return 1; 64 case "${1:-}" in 65 dump) 66 grep "^${2:-}=" $Storeinfofile | sed "s/^${2:-}=//" 67 ;; 68 drop) 69 sed -i "/^${2:-}=/d" $Storeinfofile 70 ;; 71 test) 72 grep -q "^${2:-}=" $Storeinfofile 73 ;; 74 *) 75 debugnote "storeinfo(): ${1:-}"; 76 grep -q "^$(echo "${1:-}" | cut -d= -f1)=" $Storeinfofile && { 77 sed -i "/^$(echo "${1:-}" | cut -d= -f1)=/d" $Storeinfofile 78 }; 79 echo "${1:-}" >> $Storeinfofile 80 ;; 81 esac 82 } 83 storepid () 84 { 85 case "${1:-}" in 86 dump) 87 grep -w "${2:-}" "$Storepidfile" | cut -d' ' -f1 88 ;; 89 test) 90 grep -q -w "${2:-}" "$Storepidfile" 91 ;; 92 *) 93 echo "${1:-NOPID}" "${2:-NONAME}" >> "$Storepidfile"; 94 debugnote "storepid(): Stored pid '${1:-}' of '${2:-}': $(pspid ${1:-} ||:)" 95 ;; 96 esac 97 } 98 waitforlogentry () 99 { 100 local Startzeit Uhrzeit Dauer Count=0 Schlaf; 101 local Errorkeys="${4:-}"; 102 local Warten="${5:-60}"; 103 local Error=; 104 Startzeit="$(date +%s ||:)"; 105 Startzeit="${Startzeit:-0}"; 106 [ "$Warten" = "infinity" ] && Warten=32000; 107 debugnote "waitforlogentry(): ${1:-}: Waiting for logentry \"${3:-}\" in $(basename ${2:-})"; 108 while ! grep -q "${3:-}" < "${2:-}"; do 109 Count="$(( $Count + 1 ))"; 110 Uhrzeit="$(date +%s ||:)"; 111 Uhrzeit="${Uhrzeit:-0}"; 112 Dauer="$(( $Uhrzeit - $Startzeit ))"; 113 Schlaf="$(( $Count / 10 ))"; 114 [ "$Schlaf" = "0" ] && Schlaf="0.5"; 115 mysleep "$Schlaf"; 116 [ "$Dauer" -gt "10" ] && debugnote "waitforlogentry(): ${1:-}: Waiting since ${Dauer}s for log entry \"${3:-}\" in $(basename ${2:-})"; 117 [ "$Dauer" -gt "$Warten" ] && error "waitforlogentry(): ${1:-}: Timeout waiting for entry \"${3:-}\" in $(basename ${2:-}) 118 Last lines of $(basename ${2:-}): 119 $(tail "${2:-}")"; 120 [ "$Errorkeys" ] && grep -i -q -E "$Errorkeys" < "${2:-}" && error "waitforlogentry(): ${1:-}: Found error message in logfile. 121 Last lines of logfile $(basename ${2:-}): 122 $(tail "${2:-}")"; 123 rocknroll || { 124 debugnote "waitforlogentry(): ${1:-}: Stopped waiting for ${3:-} in $(basename ${2:-}) due to terminating signal."; 125 Error=1; 126 break 127 }; 128 done; 129 [ "$Error" ] && return 1; 130 debugnote "waitforlogentry(): ${1:-}: Found log entry \"${3:-}\" in $(basename ${2:-})."; 131 return 0 132 } 133 134 warning() { 135 echo "$*:WARNING" | sed "s/\$/ /" >>$Messagefile 136 } 137 note() { 138 echo "$*:NOTE" | sed "s/\$/ /" >>$Messagefile 139 } 140 verbose() { 141 echo "$*:VERBOSE" | sed "s/\$/ /" >>$Messagefile 142 } 143 debugnote() { 144 echo "$*:DEBUGNOTE" | sed "s/\$/ /" >>$Messagefile 145 } 146 error() { 147 echo "$*:ERROR" | sed "s/\$/ /" >>$Messagefile 148 exit 64 149 } 150 stdout() { 151 echo "$*:STDOUT" | sed "s/\$/ /" >>$Messagefile 152 } 153 154 Containercommand="" 155 Imagename="pccastor_obzy7v_wallet:latest" 156 Messagefile='/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/message.fifo' 157 Newxenv=' DISPLAY=:105 XAUTHORITY=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client XSOCKET=/tmp/.X11-unix/X105 XDG_RUNTIME_DIR=/run/user/1000' 158 export PATH='/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/games:/usr/games' 159 Storeinfofile='/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/store.info' 160 Storepidfile='/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/store.pids' 161 Timetosaygoodbyefile='/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/timetosaygoodbye' 162 Timetosaygoodbyefifo='/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/timetosaygoodbye.fifo' 163 Xserver='--xvfb' 164 Workdir='' 165 166 Containerarchitecture= 167 Containerid= 168 Containerip= 169 Dockerlogspid='' 170 Exec= 171 Entrypoint= 172 Failure= 173 Imagepull= 174 Imageuser= 175 Inspect= 176 Line= 177 Pid1pid= 178 Runtime= 179 Signal= 180 Windowmanagermode= 181 Windowmanagercommand= 182 Wmcontainerid= 183 Wmdockercommand= 184 debugnote 'Running dockerrc: Setup as root or as user docker on host.' 185 186 187 # Check whether docker daemon is running, get docker info 188 docker info >>/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/docker.info 2>>/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log || { 189 error "'docker info' failed. 190 If using docker: Is docker daemon running at all? 191 Try to start docker daemon with 'systemctl start docker'. 192 Last lines of log: 193 $(rmcr < '/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log' | tail)" 194 } 195 196 # Check default runtime 197 Runtime="$( { grep 'Default Runtime' < '/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/docker.info' ||: ;} | awk '{print $3}' )" 198 [ -n "$Runtime" ] && { 199 debugnote "dockerrc: Found default container Runtime: $Runtime" 200 debugnote "dockerrc: All $(grep 'Runtimes' < '/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/docker.info' ||: )" 201 [ "$Runtime" != '' ] && { 202 case $Runtime in 203 kata-runtime) warning 'Found default container runtime kata-runtime. 204 Please run x11docker with --runtime=kata-runtime to avoid issues.' ;; 205 nvidia) [ 'no' = 'yes' ] && warning 'Option --gpu: Found default container runtime nvidia. 206 Please run x11docker with --runtime=nvidia to avoid issues.' ;; 207 runc|crun|oci) ;; 208 *) note "Found unknown container runtime: $Runtime 209 Please report at: https://github.com/mviereck/x11docker" ;; 210 esac 211 } 212 } 213 Runtime='UNDECLARED_RUNTIME' 214 debugnote "dockerrc: Container Runtime: $Runtime" 215 storeinfo "runtime=$Runtime" 216 217 # Refresh images.list for x11docker-gui 218 docker images 2>>/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log | grep -v REPOSITORY | awk '{print $1 ":" $2}' >>/home/debian/.cache/x11docker/docker.imagelist.sort 219 rmcr /home/debian/.cache/x11docker/docker.imagelist.sort 220 while read -r Line ; do 221 grep -q "" <<<$Line || echo $Line >> /home/debian/.cache/x11docker/docker.imagelist 222 done < <(sort < /home/debian/.cache/x11docker/docker.imagelist.sort) 223 rm /home/debian/.cache/x11docker/docker.imagelist.sort 224 225 # Check if image pccastor_obzy7v_wallet:latest is available locally 226 Imagepull=no 227 228 rocknroll || exit 64 229 230 [ "$Imagepull" = 'yes' ] && { 231 note "Pulling image 'pccastor_obzy7v_wallet:latest' from docker hub" 232 env DISPLAY='' DBUS_SESSION_BUS_ADDRESS='' bash -c "notify-send 'x11docker: Pulling image pccastor_obzy7v_wallet:latest'" 2>/dev/null & 233 docker pull pccastor_obzy7v_wallet:latest 1>&2 || error "Pulling image 'pccastor_obzy7v_wallet:latest' seems to have failed!" 234 } 235 236 rocknroll || exit 64 237 238 Inspect="$(docker inspect pccastor_obzy7v_wallet:latest --format='{{.Config.User}}|{{.Config.WorkingDir}}|{{.Architecture}}')" 239 240 # Check architecture 241 Containerarchitecture="$(cut -d'|' -f3 <<< "$Inspect")" 242 debugnote "dockerrc: Image architecture: $Containerarchitecture" 243 # Check CMD 244 [ -z "$Containercommand" ] && { 245 # extract image command from image if not given on cli 246 Containercommand="$(docker inspect pccastor_obzy7v_wallet:latest --format='{{.Config.Cmd}}')" 247 Containercommand="${Containercommand#[}" 248 Containercommand="${Containercommand%]}" 249 debugnote "dockerrc: Image CMD: $Containercommand" 250 echo "$Containercommand" | grep -q /x11docker/containerrc && error 'Recursion error: Found CMD /x11docker/containerrc in image. 251 Did you use 'docker commit' with an x11docker container? 252 Please build new images with a Dockerfile instead of using docker commit, 253 or provide a different container command.' 254 } 255 256 # Check USER 257 Imageuser="$(cut -d'|' -f1 <<< "$Inspect")" 258 debugnote "dockerrc: Image USER: $Imageuser" 259 [ "$Imageuser" ] && note "Found 'USER $Imageuser' in image. 260 If you want to run with user $Imageuser instead of host user debian, 261 than run with --user=RETAIN." 262 storeinfo containeruser="debian" 263 264 # Check ENTRYPOINT 265 Entrypoint="$(docker inspect pccastor_obzy7v_wallet:latest --format='{{.Config.Entrypoint}}')" 266 Entrypoint="${Entrypoint#[}" 267 Entrypoint="${Entrypoint%]}" 268 debugnote "dockerrc: Image ENTRYPOINT: $Entrypoint" 269 echo "$Entrypoint" | grep -qE 'tini|init|systemd' && { 270 note "There seems to be an init system in ENTRYPOINT of image: 271 $Entrypoint 272 Will disable it as x11docker already runs an init with option --tini. 273 To allow this ENTRYPOINT, run x11docker with option --init=none." 274 Entrypoint= 275 } 276 277 # Check WORKDIR 278 Workdir="$(cut -d'|' -f2 <<< "$Inspect")" 279 debugnote "dockerrc: Image WORKDIR: $Workdir" 280 [ "$Workdir" ] && note "Found 'WORKDIR $Workdir' in image. 281 You can change it with option --workdir=DIR." 282 283 [ -z "$Containercommand$Entrypoint" ] && error 'No container command specified and no CMD or ENTRYPOINT found in image.' 284 285 ######## Create containerrc ######## 286 287 { echo '#! /bin/sh' 288 echo '' 289 echo '# containerrc' 290 echo '# Created startscript for docker run used as container command.' 291 echo '# Runs as unprivileged user in container.' 292 echo '' 293 echo 'exec 6>&1 7>&2' 294 echo 'exec >>/x11docker/container.log 2>&1' 295 echo '' 296 echo 'mysleep () 297 { 298 sleep "${1:-1}" 2> /dev/null || sleep 1 299 }' 300 echo 'rocknroll () 301 { 302 [ -s "$Timetosaygoodbyefile" ] && return 1; 303 [ -e "$Timetosaygoodbyefile" ] || return 1; 304 return 0 305 }' 306 echo 'saygoodbye () 307 { 308 debugnote "time to say goodbye ($*)"; 309 [ -e "$Timetosaygoodbyefile" ] && echo timetosaygoodbye >> $Timetosaygoodbyefile; 310 [ -e "$Timetosaygoodbyefifo" ] && echo timetosaygoodbye >> $Timetosaygoodbyefifo 311 }' 312 echo 'storeinfo () 313 { 314 [ -e "$Storeinfofile" ] || return 1; 315 case "${1:-}" in 316 dump) 317 grep "^${2:-}=" $Storeinfofile | sed "s/^${2:-}=//" 318 ;; 319 drop) 320 sed -i "/^${2:-}=/d" $Storeinfofile 321 ;; 322 test) 323 grep -q "^${2:-}=" $Storeinfofile 324 ;; 325 *) 326 debugnote "storeinfo(): ${1:-}"; 327 grep -q "^$(echo "${1:-}" | cut -d= -f1)=" $Storeinfofile && { 328 sed -i "/^$(echo "${1:-}" | cut -d= -f1)=/d" $Storeinfofile 329 }; 330 echo "${1:-}" >> $Storeinfofile 331 ;; 332 esac 333 }' 334 echo 'waitforlogentry () 335 { 336 local Startzeit Uhrzeit Dauer Count=0 Schlaf; 337 local Errorkeys="${4:-}"; 338 local Warten="${5:-60}"; 339 local Error=; 340 Startzeit="$(date +%s ||:)"; 341 Startzeit="${Startzeit:-0}"; 342 [ "$Warten" = "infinity" ] && Warten=32000; 343 debugnote "waitforlogentry(): ${1:-}: Waiting for logentry \"${3:-}\" in $(basename ${2:-})"; 344 while ! grep -q "${3:-}" < "${2:-}"; do 345 Count="$(( $Count + 1 ))"; 346 Uhrzeit="$(date +%s ||:)"; 347 Uhrzeit="${Uhrzeit:-0}"; 348 Dauer="$(( $Uhrzeit - $Startzeit ))"; 349 Schlaf="$(( $Count / 10 ))"; 350 [ "$Schlaf" = "0" ] && Schlaf="0.5"; 351 mysleep "$Schlaf"; 352 [ "$Dauer" -gt "10" ] && debugnote "waitforlogentry(): ${1:-}: Waiting since ${Dauer}s for log entry \"${3:-}\" in $(basename ${2:-})"; 353 [ "$Dauer" -gt "$Warten" ] && error "waitforlogentry(): ${1:-}: Timeout waiting for entry \"${3:-}\" in $(basename ${2:-}) 354 Last lines of $(basename ${2:-}): 355 $(tail "${2:-}")"; 356 [ "$Errorkeys" ] && grep -i -q -E "$Errorkeys" < "${2:-}" && error "waitforlogentry(): ${1:-}: Found error message in logfile. 357 Last lines of logfile $(basename ${2:-}): 358 $(tail "${2:-}")"; 359 rocknroll || { 360 debugnote "waitforlogentry(): ${1:-}: Stopped waiting for ${3:-} in $(basename ${2:-}) due to terminating signal."; 361 Error=1; 362 break 363 }; 364 done; 365 [ "$Error" ] && return 1; 366 debugnote "waitforlogentry(): ${1:-}: Found log entry \"${3:-}\" in $(basename ${2:-})."; 367 return 0 368 }' 369 echo ' 370 warning() { 371 echo "$*:WARNING" | sed "s/\$/ /" >>$Messagefile 372 } 373 note() { 374 echo "$*:NOTE" | sed "s/\$/ /" >>$Messagefile 375 } 376 verbose() { 377 echo "$*:VERBOSE" | sed "s/\$/ /" >>$Messagefile 378 } 379 debugnote() { 380 echo "$*:DEBUGNOTE" | sed "s/\$/ /" >>$Messagefile 381 } 382 error() { 383 echo "$*:ERROR" | sed "s/\$/ /" >>$Messagefile 384 exit 64 385 } 386 stdout() { 387 echo "$*:STDOUT" | sed "s/\$/ /" >>$Messagefile 388 }' 389 echo 'Messagefile=/x11docker/message.fifo' 390 echo 'Storeinfofile=/x11docker/store.info' 391 echo 'Timetosaygoodbyefile=/x11docker/timetosaygoodbye' 392 echo '' 393 echo 'waitforlogentry containerrc $Storeinfofile containerrootrc=ready infinity' 394 echo 'debugnote "Running containerrc: Unprivileged user commands in container"' 395 echo '' 396 echo "Containercommand=\"$Containercommand\"" 397 echo "Entrypoint=\"$Entrypoint\"" 398 echo '' 399 echo 'verbose "containerrc: Container system:' 400 echo '$(cat /etc/os-release 2>&1 ||:)"' 401 echo '' 402 } >> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/containerrc 403 { 404 echo '' 405 echo '# USER and HOME' 406 echo 'Containeruser="$(storeinfo dump containeruser)"' 407 echo 'Containeruserhome="/home/debian"' 408 echo 'export USER="$Containeruser"' 409 echo '[ "$Containeruserhome" ] && {' 410 echo ' export HOME="$Containeruserhome"' 411 echo '}' 412 echo '' 413 echo '# XDG_RUNTIME_DIR' 414 echo 'Containeruseruid=$(id -u $Containeruser)' 415 echo 'export XDG_RUNTIME_DIR=/tmp/XDG_RUNTIME_DIR' 416 echo '[ -e /run/user/$Containeruseruid ] && ln -s /run/user/$Containeruseruid $XDG_RUNTIME_DIR || mkdir -p -m700 $XDG_RUNTIME_DIR' 417 echo '' 418 echo '# Copy files from /etc/skel into empty HOME' 419 echo '[ -d "$HOME" ] && {' 420 echo ' [ -d /etc/skel ] && [ -z "$(ls -A "$Containeruserhome" 2>/dev/null | grep -v -E "gnupg")" ] && {' 421 echo ' debugnote "containerrc: HOME is empty. Copying from /etc/skel"' 422 echo ' cp -n -R /etc/skel/. $Containeruserhome' 423 echo ' :' 424 echo ' } || {' 425 echo ' debugnote "containerrc: HOME is not empty. Not copying from /etc/skel"' 426 echo ' }' 427 echo '}' 428 echo '' 429 echo '# Create softlink to X unix socket' 430 echo '[ -e /tmp/.X11-unix/X105 ] || ln -s /X105 /tmp/.X11-unix' 431 echo '' 432 echo 'unset WAYLAND_DISPLAY' 433 echo '' 434 echo 'export XDG_SESSION_TYPE=x11' 435 echo '' 436 echo '' 437 echo 'export TERM=xterm' 438 echo 'storeinfo test locale && export LANG="$(storeinfo dump locale)"' 439 echo '[ -e "/usr/share/zoneinfo/UCT" ] || export TZ=UTC-00' 440 echo '[ "$(date -Ihours)" != "2021-11-25T15+00:00" ] && export TZ=UTC-00' 441 echo '[ "$DEBIAN_FRONTEND" = noninteractive ] && unset DEBIAN_FRONTEND && export DEBIAN_FRONTEND' 442 echo '[ "$DEBIAN_FRONTEND" = newt ] && unset DEBIAN_FRONTEND && export DEBIAN_FRONTEND' 443 echo '# container environment (--env)' 444 echo "export 'container=docker'" 445 echo "export 'XAUTHORITY=/x11docker/Xauthority.client'" 446 echo "export 'DISPLAY=:105'" 447 echo "export 'PULSE_COOKIE=/x11docker/pulseaudio.cookie'" 448 echo "export 'PULSE_SERVER=unix:/x11docker/pulseaudio.socket'" 449 echo "export 'USER=debian'" 450 echo '' 451 echo '[ -d "$HOME" ] && cd "$HOME"' 452 [ "$Workdir" ] && echo "[ -d \"$Workdir\" ] && cd \"$Workdir\" # WORKDIR in image" 453 echo '' 454 echo '' 455 echo 'env >> /x11docker/container.environment' 456 echo 'verbose "Container environment:' 457 echo '$(env | sort)"' 458 echo '' 459 echo 'tail -f /x11docker/stdout 2>/dev/null &' 460 echo 'tail -f /x11docker/stderr >&2 2>/dev/null &' 461 echo "exec \$Dbus sh /x11docker/cmdrc >>/x11docker/stdout 2>>/x11docker/stderr" 462 } >> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/containerrc 463 ######## End of containerrc ######## 464 465 # Write containerrc into x11docker.log 466 nl -ba >> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/x11docker.log < /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/containerrc 467 468 ######## Create cmdrc ######## 469 { echo '#! /bin/sh' 470 echo '# Created startscript for cmdrc containing final container command' 471 echo '' 472 echo 'storeinfo () 473 { 474 [ -e "$Storeinfofile" ] || return 1; 475 case "${1:-}" in 476 dump) 477 grep "^${2:-}=" $Storeinfofile | sed "s/^${2:-}=//" 478 ;; 479 drop) 480 sed -i "/^${2:-}=/d" $Storeinfofile 481 ;; 482 test) 483 grep -q "^${2:-}=" $Storeinfofile 484 ;; 485 *) 486 debugnote "storeinfo(): ${1:-}"; 487 grep -q "^$(echo "${1:-}" | cut -d= -f1)=" $Storeinfofile && { 488 sed -i "/^$(echo "${1:-}" | cut -d= -f1)=/d" $Storeinfofile 489 }; 490 echo "${1:-}" >> $Storeinfofile 491 ;; 492 esac 493 }' 494 echo ' 495 warning() { 496 echo "$*:WARNING" | sed "s/\$/ /" >>$Messagefile 497 } 498 note() { 499 echo "$*:NOTE" | sed "s/\$/ /" >>$Messagefile 500 } 501 verbose() { 502 echo "$*:VERBOSE" | sed "s/\$/ /" >>$Messagefile 503 } 504 debugnote() { 505 echo "$*:DEBUGNOTE" | sed "s/\$/ /" >>$Messagefile 506 } 507 error() { 508 echo "$*:ERROR" | sed "s/\$/ /" >>$Messagefile 509 exit 64 510 } 511 stdout() { 512 echo "$*:STDOUT" | sed "s/\$/ /" >>$Messagefile 513 }' 514 echo 'Messagefile=/x11docker/message.fifo' 515 echo "debugnote \"cmdrc: Running container command: 516 $Entrypoint $Containercommand 517 \"" 518 echo '' 519 echo "$Entrypoint $Containercommand " 520 echo '' 521 echo '[ -h "$Homesoftlink" ] && rm $Homesoftlink' 522 echo "storeinfo cmdexitcode=\$?" 523 } >> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/cmdrc 524 ######## End of cmdrc ######## 525 526 # Write cmdrc into x11docker.log 527 nl -ba >> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/x11docker.log < /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/cmdrc 528 529 # Send signal to run X and wait for X to be ready 530 storeinfo readyforX=ready 531 waitforlogentry 'dockerrc' /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/xinit.log 'xinitrc is ready' 'xinit: giving up|unable to connect to X server|Connection refused|server error|Only console users are allowed' 532 533 rocknroll || exit 64 534 535 536 rocknroll || exit 64 537 538 539 #### run docker image #### 540 read Containerid < <(docker run --detach --tty \ 541 --name x11docker_X105_pccastor_obzy7v_wallet-latest_55302946285 \ 542 --user 1000:1000 \ 543 --userns=host \ 544 --cap-drop ALL \ 545 --security-opt no-new-privileges \ 546 --security-opt label=type:container_runtime_t \ 547 --volume '/usr/bin/docker-init':'/usr/local/bin/init':ro \ 548 --tmpfs /run:exec --tmpfs /run/lock \ 549 --volume '/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share':'/x11docker':rw \ 550 --volume '/var/www/html/pccastor-com/wp-content/plugins/Loamok_xpra_docker_admin/system_admin-tpls/vms/pccastor_obzy7v/home/pccastor_obzy7v_wallet':'/home/debian':rw \ 551 --volume '/tmp/.X11-unix/X105':'/X105':rw \ 552 --volume /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/pulseaudio.client.conf:/etc/pulse/client.conf:ro \ 553 --workdir '/tmp' \ 554 --entrypoint env \ 555 --env 'container=docker' \ 556 --env 'XAUTHORITY=/x11docker/Xauthority.client' \ 557 --env 'DISPLAY=:105' \ 558 --env 'PULSE_COOKIE=/x11docker/pulseaudio.cookie' \ 559 --env 'PULSE_SERVER=unix:/x11docker/pulseaudio.socket' \ 560 --env 'USER=debian' \ 561 -- pccastor_obzy7v_wallet:latest /usr/local/bin/init -- /bin/sh - /x11docker/containerrc 2>>/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log | rmcr) 562 ########################## 563 564 565 [ "$Containerid" ] || { 566 error "Startup of docker failed. Did not receive a container ID. 567 568 Last lines of container log: 569 $(rmcr < /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log | tail)" 570 } 571 storeinfo containerid="$Containerid" 572 # Wait for container to be ready 573 for ((Count=1 ; Count<=40 ; Count++)); do 574 docker exec x11docker_X105_pccastor_obzy7v_wallet-latest_55302946285 sh -c : 2>&1 | rmcr >>/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log && { debugnote 'dockerrc: Container is up and running.' ; break ; } || debugnote "dockerrc: Container not ready on $Count. attempt, trying again." 575 rocknroll || exit 64 576 mysleep 0.1 577 done 578 579 # Wait for pid 1 in container 580 for ((Count=1 ; Count<=40 ; Count++)); do 581 Pid1pid="$(docker inspect --format '{{.State.Pid}}' x11docker_X105_pccastor_obzy7v_wallet-latest_55302946285 2>>/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log | rmcr)" 582 debugnote "dockerrc: $Count. check for PID 1: $Pid1pid" 583 checkpid "$Pid1pid" && break 584 rocknroll || exit 64 585 mysleep 0.1 586 done 587 [ "$Pid1pid" = "0" ] && Pid1pid="" 588 [ -z "$Pid1pid" ] && error "dockerrc(): Did not receive PID of PID1 in container. 589 Maybe the container immediately stopped for unknown reasons. 590 Just in case, check if host and image architecture are compatible: 591 Host architecture: amd64 (x86_64), image architecture: $Containerarchitecture. 592 Output of \"docker ps | grep x11docker\": 593 $(docker ps | grep x11docker) 594 595 Content of container log: 596 $(rmcr < /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log | uniq )" 597 storeinfo pid1pid="$Pid1pid" 598 599 # Get IP of container 600 Containerip="$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' x11docker_X105_pccastor_obzy7v_wallet-latest_55302946285 2>>/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log)" 601 storeinfo containerip=$Containerip 602 603 # Check log for startup failure 604 Failure="$(rmcr < /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log | grep -v grep | grep -E 'Error response from daemon|OCI runtime exec' ||:)" 605 [ "$Failure" ] && { 606 echo "$Failure" >>/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log 607 error "Got error message from docker: 608 $Failure 609 610 Last lines of logfile: 611 $(tail /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log)" 612 } 613 614 debugnote 'dockerrc(): Starting containerrootrc with docker exec' 615 # copy containerrootrc inside of container to avoid possible noexec of host home. 616 docker exec x11docker_X105_pccastor_obzy7v_wallet-latest_55302946285 sh -c 'cp /x11docker/containerrootrc /tmp/containerrootrc ; chmod 644 /tmp/containerrootrc' 2>&1 | rmcr >>/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log 617 # run container root setup. containerrc will wait until setup script is ready. 618 docker exec -u root x11docker_X105_pccastor_obzy7v_wallet-latest_55302946285 /bin/sh /tmp/containerrootrc 2>&1 | rmcr >>/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log 619 620 storeinfo dockerrc=ready 621 622 [ "$Containerid" ] || [ "$Wmcontainerid" ] && { 623 # wait for signal of finish() 624 read Signal > /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log 2>&1 & 627 [ "$Wmcontainerid" ] && docker stop $Wmcontainerid >> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log 2>&1 & 628 [ "$Dockerlogspid" ] && kill $Dockerlogspid >> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log 2>&1 & 629 } 630 } & storepid $! dockerstopshell 631 exit 0 x11docker[15:48:25,097]: Generated containerrootrc: 1 #! /bin/sh 2 3 # containerrootrc 4 # This Script is executed as root in container. 5 # - Create container user 6 # - Time zone 7 # - Install NVIDIA driver if requested 8 # - Set up init system services and DBus for --init=systemd|openrc|runit|sysvinit 9 10 # redirect output to have it available before 'docker logs' starts. --init=runit (void) would eat up the output at all for unknown reasons. 11 exec 1>>/x11docker/container.log 2>&1 12 13 storeinfo () 14 { 15 [ -e "$Storeinfofile" ] || return 1; 16 case "${1:-}" in 17 dump) 18 grep "^${2:-}=" $Storeinfofile | sed "s/^${2:-}=//" 19 ;; 20 drop) 21 sed -i "/^${2:-}=/d" $Storeinfofile 22 ;; 23 test) 24 grep -q "^${2:-}=" $Storeinfofile 25 ;; 26 *) 27 debugnote "storeinfo(): ${1:-}"; 28 grep -q "^$(echo "${1:-}" | cut -d= -f1)=" $Storeinfofile && { 29 sed -i "/^$(echo "${1:-}" | cut -d= -f1)=/d" $Storeinfofile 30 }; 31 echo "${1:-}" >> $Storeinfofile 32 ;; 33 esac 34 } 35 rocknroll () 36 { 37 [ -s "$Timetosaygoodbyefile" ] && return 1; 38 [ -e "$Timetosaygoodbyefile" ] || return 1; 39 return 0 40 } 41 42 warning() { 43 echo "$*:WARNING" | sed "s/\$/ /" >>$Messagefile 44 } 45 note() { 46 echo "$*:NOTE" | sed "s/\$/ /" >>$Messagefile 47 } 48 verbose() { 49 echo "$*:VERBOSE" | sed "s/\$/ /" >>$Messagefile 50 } 51 debugnote() { 52 echo "$*:DEBUGNOTE" | sed "s/\$/ /" >>$Messagefile 53 } 54 error() { 55 echo "$*:ERROR" | sed "s/\$/ /" >>$Messagefile 56 exit 64 57 } 58 stdout() { 59 echo "$*:STDOUT" | sed "s/\$/ /" >>$Messagefile 60 } 61 Messagefile=/x11docker/message.fifo 62 Storeinfofile='/x11docker/store.info' 63 Timetosaygoodbyefile=/x11docker/timetosaygoodbye 64 65 debugnote 'Running containerrootrc: Setup as root in container' 66 67 Error='' 68 for Line in cat chmod chown cut cd cp date echo env export grep id ln ls mkdir mv printf rm sed sh sleep tail touch; do 69 command -v "$Line" || { 70 warning "ERROR: Command not found in image: $Line" 71 Error=1 72 } 73 done 74 [ "$Error" ] && error 'Commands for container setup missing in image. 75 You can try with option --no-setup to avoid this error.' 76 77 # Check type of libc 78 ldd --version 2>&1 | grep -q 'musl libc' && Containerlibc='musl' 79 ldd --version 2>&1 | grep -q -E 'GLIBC|GNU libc' && Containerlibc='glibc' 80 debugnote "containerrootrc: Container libc: $Containerlibc" 81 82 # Prepare X environment 83 # Create some system dirs with needed permissions 84 mkdir -v -p /var/lib/dbus /var/run/dbus 85 mkdir -v -p -m 1777 /tmp/.ICE-unix /tmp/.X11-unix /tmp/.font-unix 86 chmod -c 1777 /tmp/.ICE-unix /tmp/.X11-unix /tmp/.font-unix 87 export DISPLAY=:105 XAUTHORITY=/x11docker/Xauthority.client 88 89 # workaround: autostart of xrandr for some desktops like deepin, cinnamon and gnome to fix wrong autoresize 90 echo '#! /bin/sh 91 Output=$(xrandr | grep ' connected' | cut -d" " -f1) 92 Mode=1980x1200 93 xrandr --output $Output --mode $Mode\n' > /usr/local/bin/x11docker-xrandr 94 chmod +x /usr/local/bin/x11docker-xrandr 95 mkdir -p /etc/xdg/autostart 96 echo '[Desktop Entry] 97 Encoding=UTF-8 98 Version=0.9.4 99 Type=Application 100 Name=x11docker-xrandr 101 Comment= 102 Exec=/usr/local/bin/x11docker-xrandr 103 ' > /etc/xdg/autostart/x11docker-xrandr.desktop 104 105 # Time zone 106 [ ! -d /usr/share/zoneinfo ] && [ "$Containerlibc" = "glibc" ] && { 107 mkdir -p /usr/share/zoneinfo 108 cp '/x11docker/libc.localtime' '/usr/share/zoneinfo/UCT' 109 } 110 [ -e '/usr/share/zoneinfo/UCT' ] && ln -f -s '/usr/share/zoneinfo/UCT' /etc/localtime 111 112 # Container system 113 Containersystem="$(grep '^ID=' /etc/os-release 2>/dev/null | cut -d= -f2 || echo 'unknown')" 114 verbose "Container system ID: $Containersystem" 115 116 # Environment variables 117 export 'container=docker' 118 export 'XAUTHORITY=/x11docker/Xauthority.client' 119 export 'DISPLAY=:105' 120 export 'PULSE_COOKIE=/x11docker/pulseaudio.cookie' 121 export 'PULSE_SERVER=unix:/x11docker/pulseaudio.socket' 122 export 'USER=debian' 123 124 # Check container user 125 Containeruser="$(storeinfo dump containeruser)" 126 Containeruser="${Containeruser:-debian}" 127 128 Containeruserhome='/home/debian' 129 # Create user entry in /etc/passwd (and delete possibly existing same uid) 130 cat /etc/passwd | grep -v ':1000:' > /tmp/passwd 131 132 # Disable possible /etc/shadow passwords for other users 133 sed -i 's%:x:%:-:%' /tmp/passwd 134 bash --version >/dev/null 2>&1 && Containerusershell=/bin/bash || Containerusershell=/bin/sh 135 Containeruserentry="debian:x:1000:1000:debian,,,:/home/debian:$Containerusershell" 136 debugnote "containerrootrc: $Containeruserentry" 137 echo "$Containeruserentry" >> /tmp/passwd 138 139 rm /etc/passwd 140 mv /tmp/passwd /etc/passwd || warning 'Unable to change /etc/passwd. That may be a security risk.' 141 142 # Create password entry for container user in /etc/shadow 143 rm -v /etc/shadow || warning 'Cannot change /etc/shadow. That may be a security risk.' 144 echo "debian:sac19FwGGTx/A:17293:0:99999:7:::" > /etc/shadow 145 echo 'root:*:17219:0:99999:7:::' >> /etc/shadow 146 chmod 640 /etc/shadow # can fail depending on available capabilities 147 148 # Create user group entry (and delete possibly existing same gid) 149 cat /etc/group | grep -v ':1000:' > /tmp/group 150 echo "debian:x:1000:" >> /tmp/group 151 mv /tmp/group /etc/group 152 153 # Create /etc/sudoers, delete /etc/sudoers.d. Overwrite possible sudo setups in image. 154 [ -e /etc/sudoers.d ] && rm -v -R /etc/sudoers.d 155 [ -e /etc/sudoers ] && rm -v /etc/sudoers 156 echo '# /etc/sudoers created by x11docker' > /etc/sudoers 157 echo 'Defaults env_reset' >> /etc/sudoers 158 echo 'root ALL=(ALL) ALL' >> /etc/sudoers 159 160 # Restrict PAM configuration of su and sudo 161 mkdir -p /etc/pam.d 162 [ -e /etc/pam.d/sudo ] && rm -v /etc/pam.d/sudo 163 case "$Containersystem" in 164 fedora) 165 echo '#%PAM-1.0' > /etc/pam.d/su 166 echo 'auth sufficient pam_rootok.so' >> /etc/pam.d/su 167 echo 'account sufficient pam_succeed_if.so uid = 0 use_uid quiet' >> /etc/pam.d/su 168 echo 'session include system-auth' >> /etc/pam.d/su 169 ;; 170 *) 171 echo '#%PAM-1.0' > /etc/pam.d/su 172 echo 'auth sufficient pam_rootok.so' >> /etc/pam.d/su # allow root to switch user without a password 173 echo '@include common-auth' >> /etc/pam.d/su 174 echo '@include common-account' >> /etc/pam.d/su 175 echo '@include common-session' >> /etc/pam.d/su 176 ;; 177 esac 178 179 # Set up container user groups 180 # Create HOME 181 [ -e "$Containeruserhome" ] || { 182 mkdir -v -p "$(dirname "$Containeruserhome")" 183 mkdir -v -m 777 "$Containeruserhome" 184 chown -v "$Containeruser":"$Containerusergroup" "$Containeruserhome" && chmod -v 755 "$Containeruserhome" # can fail depending on capabilities 185 } 186 ls -la $Containeruserhome 187 188 rocknroll || exit 64 189 190 191 # disable getty in inittab 192 [ -e /etc/inittab ] && sed -i 's/.*getty/##getty disabled by x11docker## \0/' /etc/inittab 193 194 195 rocknroll || exit 64 196 197 # --lang: Language locale 198 verbose "Searching for language locale matching fr" 199 Locales="$(locale -a)" 200 Langall="$(cat /usr/share/i18n/SUPPORTED | grep -E 'UTF-8|utf8' | cut -d' ' -f1 | cut -d. -f1 | cut -d@ -f1 | sort | uniq)" 201 Langland="$(echo fr | cut -d. -f1)" 202 Langcontainer='' 203 204 echo "$Langland" | grep -q '_' || { 205 Langland="$(echo $Langland | tr '[:upper:]' '[:lower:]')_$(echo $Langland | tr '[:lower:]' '[:upper:]')" 206 echo "$Langall" | grep -q "$Langland" || { 207 echo "$Langall" | grep -i -q "fr" && { 208 Langland="$(echo "$Langall" | grep -i -m1 "fr")" 209 } 210 } 211 } 212 213 Langland="$(echo "$Langland" | cut -d_ -f1 | tr '[:upper:]' '[:lower:]')_$(echo "$Langland" | cut -d_ -f2 | tr '[:lower:]' '[:upper:]')" 214 215 echo "$Locales" | grep -q "$Langland.UTF-8" && Langcontainer="$Langland.UTF-8" 216 echo "$Locales" | grep -q "$Langland.utf8" && Langcontainer="$Langland.utf8" 217 218 [ -z "$Langcontainer" ] && { 219 [ -e /usr/share/i18n/SUPPORTED ] || note "Option --lang: /usr/share/i18n/SUPPORTED not found. 220 Please install package 'locales' in image (belongs to glibc). 221 Look here to find a package for your image system: 222 https://github.com/mviereck/x11docker/wiki/dependencies#dependencies-in-image" 223 224 Langcontainer="$Langland.utf8" 225 note "Option --lang: Generating language locale $Langcontainer". 226 227 command -v localedef >/dev/null || note 'Option --lang: Command localedef not found in image. 228 Need it for language locale creation. 229 Look here to find a package for your image system: 230 https://github.com/mviereck/x11docker/wiki/dependencies#dependencies-in-image' 231 localedef --verbose --force -i "$Langland" -f UTF-8 $Langcontainer || verbose "localedef exit code: $?" 232 233 locale -a | grep -q "$Langcontainer" || { 234 note "Option --lang: Generation of locale $Langcontainer failed." 235 Langcontainer='' 236 } 237 } || { 238 debugnote "Option --lang: Found locale in image: $Langcontainer" 239 } 240 241 [ "$Langcontainer" ] && { 242 storeinfo locale="$Langcontainer" 243 echo "LANG=$Langcontainer" > /etc/default/locale 244 } || note 'Option --lang: Desired locale for 'fr' not found and not generated.' 245 246 debugnote "Option --lang: Output of locale -a: 247 $(locale -a)" 248 249 rocknroll || exit 64 250 251 storeinfo containerrootrc=ready 252 x11docker[15:48:25,119]: Generated xinitrc: 1 #! /bin/sh 2 disable_xhost () 3 { 4 local Line=; 5 command -v xhost > /dev/null || { 6 warning "Command 'xhost' not found. 7 Can not check for possibly allowed network access to X. 8 Please install 'xhost'."; 9 return 1 10 }; 11 xhost 2>&1 | tail -n +2 /dev/stdin | while read -r Line; do 12 debugnote "xhost: Removing entry $Line"; 13 xhost -$Line; 14 done; 15 xhost -; 16 [ "$(xhost 2>&1 | wc -l)" -gt "1" ] && { 17 warning "Remaining xhost permissions found on display ${DISPLAY:-} 18 $(xhost 2>&1 )"; 19 return 1 20 }; 21 xhost 2>&1 | grep "access control disabled" && { 22 warning "Failed to restrict xhost permissions. 23 Access to display ${DISPLAY:-} is allowed for everyone."; 24 return 1 25 }; 26 return 0 27 } 28 pspid () 29 { 30 LC_ALL=C ps -p "${1:-}" 2> /dev/null | grep -v 'TIME' 31 } 32 rocknroll () 33 { 34 [ -s "$Timetosaygoodbyefile" ] && return 1; 35 [ -e "$Timetosaygoodbyefile" ] || return 1; 36 return 0 37 } 38 storeinfo () 39 { 40 [ -e "$Storeinfofile" ] || return 1; 41 case "${1:-}" in 42 dump) 43 grep "^${2:-}=" $Storeinfofile | sed "s/^${2:-}=//" 44 ;; 45 drop) 46 sed -i "/^${2:-}=/d" $Storeinfofile 47 ;; 48 test) 49 grep -q "^${2:-}=" $Storeinfofile 50 ;; 51 *) 52 debugnote "storeinfo(): ${1:-}"; 53 grep -q "^$(echo "${1:-}" | cut -d= -f1)=" $Storeinfofile && { 54 sed -i "/^$(echo "${1:-}" | cut -d= -f1)=/d" $Storeinfofile 55 }; 56 echo "${1:-}" >> $Storeinfofile 57 ;; 58 esac 59 } 60 storepid () 61 { 62 case "${1:-}" in 63 dump) 64 grep -w "${2:-}" "$Storepidfile" | cut -d' ' -f1 65 ;; 66 test) 67 grep -q -w "${2:-}" "$Storepidfile" 68 ;; 69 *) 70 echo "${1:-NOPID}" "${2:-NONAME}" >> "$Storepidfile"; 71 debugnote "storepid(): Stored pid '${1:-}' of '${2:-}': $(pspid ${1:-} ||:)" 72 ;; 73 esac 74 } 75 76 warning() { 77 echo "$*:WARNING" | sed "s/\$/ /" >>$Messagefile 78 } 79 note() { 80 echo "$*:NOTE" | sed "s/\$/ /" >>$Messagefile 81 } 82 verbose() { 83 echo "$*:VERBOSE" | sed "s/\$/ /" >>$Messagefile 84 } 85 debugnote() { 86 echo "$*:DEBUGNOTE" | sed "s/\$/ /" >>$Messagefile 87 } 88 error() { 89 echo "$*:ERROR" | sed "s/\$/ /" >>$Messagefile 90 exit 64 91 } 92 stdout() { 93 echo "$*:STDOUT" | sed "s/\$/ /" >>$Messagefile 94 } 95 getscreensize() { 96 CurrentXaxis="$(xrandr | grep primary | cut -d' ' -f4 | cut -dx -f1 )" 97 CurrentYaxis="$(xrandr | grep primary | cut -d' ' -f4 | cut -dx -f2 | cut -d+ -f1)" 98 } 99 checkscreensize() { 100 getscreensize 101 [ "$Xaxis" = "$CurrentXaxis" ] || return 1 102 [ "$Yaxis" = "$CurrentYaxis" ] || return 1 103 return 0 104 } 105 getprimary() { 106 xrandr | grep -q primary || xrandr --output $(xrandr | grep ' connected' | head -n1 | cut -d' ' -f1) --primary 107 echo $(xrandr | grep primary | cut -d' ' -f1) 108 } 109 110 Messagefile='/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/message.fifo' 111 Output="$(getprimary)" 112 Storeinfofile='/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/store.info' 113 Storepidfile='/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/store.pids' 114 Timetosaygoodbyefile='/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/timetosaygoodbye' 115 116 export PATH='/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/games:/usr/games' 117 118 Cookie='' 119 Line='' 120 Var='' 121 122 debugnote 'Running xinitrc' 123 124 export DISPLAY=:105 XAUTHORITY=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client XSOCKET=/tmp/.X11-unix/X105 XDG_RUNTIME_DIR=/run/user/1000 125 # background color 126 xsetroot -solid '#7F7F7F' 2>/dev/null 127 128 # create new XAUTHORITY cookies 129 :> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client 130 131 echo 'Requesting trusted cookie from X server' 132 xauth -v -i -f /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client generate :105 . trusted timeout 3600 133 134 [ -s '/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client' ] || { 135 [ 'trusted' = 'untrusted' ] && note 'Could not create untrusted cookie. 136 Maybe your X server misses extension SECURITY.' 137 } 138 [ -s '/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client' ] || { 139 # still no cookie? try to create one without extension security 140 debugnote 'xinitrc: Failed to retrieve trusted cookie from X server. Will bake one myself.' 141 echo 'Failed to retrieve trusted cookie from X server. Will bake one myself.' 142 xauth -v -i -f /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client add :105 . 46d2e35d8e6e53dc37f60a7ffc868d2e 143 ls -l /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client 144 } 145 146 # Prepare cookie with localhost identification disabled by ffff, needed if X socket is shared. ffff means 'familiy wild' 147 Cookie="$(xauth -i -f /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client nlist | sed -e 's/^..../ffff/')" 148 echo "$Cookie" | xauth -v -i -f /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client nmerge - 149 150 debugnote "xinitrc: Created cookie: $(xauth -f /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client list 2>&1)" 151 ls -l /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client 152 cp /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/Xauthority.server 153 chmod 644 /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client 154 155 [ -s '/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client' ] || warning 'Cookie creation failed!' 156 export XAUTHORITY=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client 157 [ 'yes' = 'no' ] || [ ! -s '/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client' ] && unset XAUTHORITY && warning '--xvfb: X server :105 runs without cookie authentication.' 158 159 # clean xhost 160 verbose 'Disabling any possible access to new X server possibly granted by xhost' 161 disable_xhost 162 163 # Keyboard layout 164 165 # create set of different screen resolutions 166 xrandr --newmode "1984x1200" 199.25 1984 2120 2328 2672 1200 1203 1213 1245 -hsync +vsync 167 xrandr --addmode $Output "1984x1200" 168 while read Line; do 169 Line="$(echo "$Line" | sed 's/Modeline//g')" 170 Line="$(echo "$Line" | sed 's/"//g')" 171 xrandr --newmode $Line 2>/dev/null 172 xrandr --addmode "$Output" $(echo $Line | cut -d' ' -f1) 2>/dev/null 173 done < "/home/debian/.cache/x11docker/modelines.1980x1200" 174 175 176 verbose "Output of xrandr on :105 177 $(xrandr)" 178 179 echo 'xinitrc: xinitrc is ready' 180 storeinfo xinitrc=ready 181 182 # wait for the end 183 read Var /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log <== WARNING: No swap limit support ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/message.log <== DEBUGNOTE[15:48:25,299]: dockerrc: Found default container Runtime: runc DEBUGNOTE[15:48:25,315]: dockerrc: All Runtimes: runc DEBUGNOTE[15:48:25,332]: dockerrc: Container Runtime: UNDECLARED_RUNTIME DEBUGNOTE[15:48:25,349]: storeinfo(): runtime=UNDECLARED_RUNTIME DEBUGNOTE[15:48:25,447]: dockerrc: Image architecture: amd64 DEBUGNOTE[15:48:25,502]: dockerrc: Image CMD: /usr/local/bin/start DEBUGNOTE[15:48:25,517]: dockerrc: Image USER: DEBUGNOTE[15:48:25,532]: storeinfo(): containeruser=debian 1 #! /bin/sh 2 3 # containerrc 4 # Created startscript for docker run used as container command. 5 # Runs as unprivileged user in container. 6 7 exec 6>&1 7>&2 8 exec >>/x11docker/container.log 2>&1 9 10 mysleep () 11 { 12 sleep "${1:-1}" 2> /dev/null || sleep 1 13 } 14 rocknroll () 15 { 16 [ -s "$Timetosaygoodbyefile" ] && return 1; 17 [ -e "$Timetosaygoodbyefile" ] || return 1; 18 return 0 19 } 20 saygoodbye () 21 { 22 debugnote "time to say goodbye ($*)"; 23 [ -e "$Timetosaygoodbyefile" ] && echo timetosaygoodbye >> $Timetosaygoodbyefile; 24 [ -e "$Timetosaygoodbyefifo" ] && echo timetosaygoodbye >> $Timetosaygoodbyefifo 25 } 26 storeinfo () 27 { 28 [ -e "$Storeinfofile" ] || return 1; 29 case "${1:-}" in 30 dump) 31 grep "^${2:-}=" $Storeinfofile | sed "s/^${2:-}=//" 32 ;; 33 drop) 34 sed -i "/^${2:-}=/d" $Storeinfofile 35 ;; 36 test) 37 grep -q "^${2:-}=" $Storeinfofile 38 ;; 39 *) 40 debugnote "storeinfo(): ${1:-}"; 41 grep -q "^$(echo "${1:-}" | cut -d= -f1)=" $Storeinfofile && { 42 sed -i "/^$(echo "${1:-}" | cut -d= -f1)=/d" $Storeinfofile 43 }; 44 echo "${1:-}" >> $Storeinfofile 45 ;; 46 esac 47 } 48 waitforlogentry () 49 { 50 local Startzeit Uhrzeit Dauer Count=0 Schlaf; 51 local Errorkeys="${4:-}"; 52 local Warten="${5:-60}"; 53 local Error=; 54 Startzeit="$(date +%s ||:)"; 55 Startzeit="${Startzeit:-0}"; 56 [ "$Warten" = "infinity" ] && Warten=32000; 57 debugnote "waitforlogentry(): ${1:-}: Waiting for logentry \"${3:-}\" in $(basename ${2:-})"; 58 while ! grep -q "${3:-}" < "${2:-}"; do 59 Count="$(( $Count + 1 ))"; 60 Uhrzeit="$(date +%s ||:)"; 61 Uhrzeit="${Uhrzeit:-0}"; 62 Dauer="$(( $Uhrzeit - $Startzeit ))"; 63 Schlaf="$(( $Count / 10 ))"; 64 [ "$Schlaf" = "0" ] && Schlaf="0.5"; 65 mysleep "$Schlaf"; 66 [ "$Dauer" -gt "10" ] && debugnote "waitforlogentry(): ${1:-}: Waiting since ${Dauer}s for log entry \"${3:-}\" in $(basename ${2:-})"; 67 [ "$Dauer" -gt "$Warten" ] && error "waitforlogentry(): ${1:-}: Timeout waiting for entry \"${3:-}\" in $(basename ${2:-}) 68 Last lines of $(basename ${2:-}): 69 $(tail "${2:-}")"; 70 [ "$Errorkeys" ] && grep -i -q -E "$Errorkeys" < "${2:-}" && error "waitforlogentry(): ${1:-}: Found error message in logfile. 71 Last lines of logfile $(basename ${2:-}): 72 $(tail "${2:-}")"; 73 rocknroll || { 74 debugnote "waitforlogentry(): ${1:-}: Stopped waiting for ${3:-} in $(basename ${2:-}) due to terminating signal."; 75 Error=1; 76 break 77 }; 78 done; 79 [ "$Error" ] && return 1; 80 debugnote "waitforlogentry(): ${1:-}: Found log entry \"${3:-}\" in $(basename ${2:-})."; 81 return 0 82 } 83 84 warning() { 85 echo "$*:WARNING" | sed "s/\$/ /" >>$Messagefile 86 } 87 note() { 88 echo "$*:NOTE" | sed "s/\$/ /" >>$Messagefile 89 } 90 verbose() { 91 echo "$*:VERBOSE" | sed "s/\$/ /" >>$Messagefile 92 } 93 debugnote() { 94 echo "$*:DEBUGNOTE" | sed "s/\$/ /" >>$Messagefile 95 } 96 error() { 97 echo "$*:ERROR" | sed "s/\$/ /" >>$Messagefile 98 exit 64 99 } 100 stdout() { 101 echo "$*:STDOUT" | sed "s/\$/ /" >>$Messagefile 102 } 103 Messagefile=/x11docker/message.fifo 104 Storeinfofile=/x11docker/store.info 105 Timetosaygoodbyefile=/x11docker/timetosaygoodbye 106 107 waitforlogentry containerrc $Storeinfofile containerrootrc=ready infinity 108 debugnote "Running containerrc: Unprivileged user commands in container" 109 110 Containercommand="/usr/local/bin/start" 111 Entrypoint="" 112 113 verbose "containerrc: Container system: 114 $(cat /etc/os-release 2>&1 ||:)" 115 116 117 # USER and HOME 118 Containeruser="$(storeinfo dump containeruser)" 119 Containeruserhome="/home/debian" 120 export USER="$Containeruser" 121 [ "$Containeruserhome" ] && { 122 export HOME="$Containeruserhome" 123 } 124 125 # XDG_RUNTIME_DIR 126 Containeruseruid=$(id -u $Containeruser) 127 export XDG_RUNTIME_DIR=/tmp/XDG_RUNTIME_DIR 128 [ -e /run/user/$Containeruseruid ] && ln -s /run/user/$Containeruseruid $XDG_RUNTIME_DIR || mkdir -p -m700 $XDG_RUNTIME_DIR 129 130 # Copy files from /etc/skel into empty HOME 131 [ -d "$HOME" ] && { 132 [ -d /etc/skel ] && [ -z "$(ls -A "$Containeruserhome" 2>/dev/null | grep -v -E "gnupg")" ] && { 133 debugnote "containerrc: HOME is empty. Copying from /etc/skel" 134 cp -n -R /etc/skel/. $Containeruserhome 135 : 136 } || { 137 debugnote "containerrc: HOME is not empty. Not copying from /etc/skel" 138 } 139 } 140 141 # Create softlink to X unix socket 142 [ -e /tmp/.X11-unix/X105 ] || ln -s /X105 /tmp/.X11-unix 143 144 unset WAYLAND_DISPLAY 145 146 export XDG_SESSION_TYPE=x11 147 148 149 export TERM=xterm 150 storeinfo test locale && export LANG="$(storeinfo dump locale)" 151 [ -e "/usr/share/zoneinfo/UCT" ] || export TZ=UTC-00 152 [ "$(date -Ihours)" != "2021-11-25T15+00:00" ] && export TZ=UTC-00 153 [ "$DEBIAN_FRONTEND" = noninteractive ] && unset DEBIAN_FRONTEND && export DEBIAN_FRONTEND 154 [ "$DEBIAN_FRONTEND" = newt ] && unset DEBIAN_FRONTEND && export DEBIAN_FRONTEND 155 # container environment (--env) 156 export 'container=docker' 157 export 'XAUTHORITY=/x11docker/Xauthority.client' 158 export 'DISPLAY=:105' 159 export 'PULSE_COOKIE=/x11docker/pulseaudio.cookie' 160 export 'PULSE_SERVER=unix:/x11docker/pulseaudio.socket' 161 export 'USER=debian' 162 163 [ -d "$HOME" ] && cd "$HOME" 164 165 166 env >> /x11docker/container.environment 167 verbose "Container environment: 168 $(env | sort)" 169 170 tail -f /x11docker/stdout 2>/dev/null & 171 tail -f /x11docker/stderr >&2 2>/dev/null & 172 exec $Dbus sh /x11docker/cmdrc >>/x11docker/stdout 2>>/x11docker/stderr 1 #! /bin/sh 2 # Created startscript for cmdrc containing final container command 3 4 storeinfo () 5 { 6 [ -e "$Storeinfofile" ] || return 1; 7 case "${1:-}" in 8 dump) 9 grep "^${2:-}=" $Storeinfofile | sed "s/^${2:-}=//" 10 ;; 11 drop) 12 sed -i "/^${2:-}=/d" $Storeinfofile 13 ;; 14 test) 15 grep -q "^${2:-}=" $Storeinfofile 16 ;; 17 *) 18 debugnote "storeinfo(): ${1:-}"; 19 grep -q "^$(echo "${1:-}" | cut -d= -f1)=" $Storeinfofile && { 20 sed -i "/^$(echo "${1:-}" | cut -d= -f1)=/d" $Storeinfofile 21 }; 22 echo "${1:-}" >> $Storeinfofile 23 ;; 24 esac 25 } 26 27 warning() { 28 echo "$*:WARNING" | sed "s/\$/ /" >>$Messagefile 29 } 30 note() { 31 echo "$*:NOTE" | sed "s/\$/ /" >>$Messagefile 32 } 33 verbose() { 34 echo "$*:VERBOSE" | sed "s/\$/ /" >>$Messagefile 35 } 36 debugnote() { 37 echo "$*:DEBUGNOTE" | sed "s/\$/ /" >>$Messagefile 38 } 39 error() { 40 echo "$*:ERROR" | sed "s/\$/ /" >>$Messagefile 41 exit 64 42 } 43 stdout() { 44 echo "$*:STDOUT" | sed "s/\$/ /" >>$Messagefile 45 } 46 Messagefile=/x11docker/message.fifo 47 debugnote "cmdrc: Running container command: 48 /usr/local/bin/start 49 " 50 51 /usr/local/bin/start 52 53 [ -h "$Homesoftlink" ] && rm $Homesoftlink 54 storeinfo cmdexitcode=$? DEBUGNOTE[15:48:25,566]: dockerrc: Image ENTRYPOINT: DEBUGNOTE[15:48:25,582]: dockerrc: Image WORKDIR: DEBUGNOTE[15:48:25,595]: storeinfo(): readyforX=ready DEBUGNOTE[15:48:25,611]: waitforlogentry(): dockerrc: Waiting for logentry "xinitrc is ready" in xinit.log DEBUGNOTE[15:48:25,670]: waitforlogentry(): start_xserver(): Found log entry "readyforX=ready" in store.info. ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/xinit.log <== _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root xinit: XFree86_VT property unexpectedly has 0 items instead of 1 xrandr: Failed to get size of gamma for output screen xrandr: Failed to get size of gamma for output screen xrandr: Failed to get size of gamma for output screen xrandr: Failed to get size of gamma for output screen Requesting trusted cookie from X server Ignoring locks on authority file /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client authorization id is 914 Ignoring locks and writing authority file /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client Ignoring locks on authority file /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client 1 entries read in: 0 new, 1 replacement Ignoring locks and writing authority file /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/message.log <== DEBUGNOTE[15:48:25,786]: Running xinitrc ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/xinit.log <== -rw------- 1 debian debian 59 Nov 25 15:48 /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client access control enabled, only authorized clients can connect ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/message.log <== DEBUGNOTE[15:48:25,804]: xinitrc: Created cookie: #ffff#7063636173746f722d636f6d#:105 MIT-MAGIC-COOKIE-1 d622717efc077c2118d2bfde4b2251ee ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/xinit.log <== xrandr: Failed to get size of gamma for output screen xrandr: Failed to get size of gamma for output screen X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 139 (RANDR) Minor opcode of failed request: 18 (RRAddOutputMode) Serial number of failed request: 19 Current serial number in output stream: 20 ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/message.log <== x11docker[15:48:25,822]: Disabling any possible access to new X server possibly granted by xhost ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/xinit.log <== xrandr: Failed to get size of gamma for output screen xinitrc: xinitrc is ready ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/message.log <== x11docker[15:48:29,516]: Output of xrandr on :105 Screen 0: minimum 1 x 1, current 1980 x 1200, maximum 1980 x 1200 screen connected primary 1980x1200+0+0 0mm x 0mm 1980x1200 0.00* 496x300 58.55 600x300 58.48 792x300 58.69 896x300 59.34 992x300 59.08 1096x300 58.99 1192x300 59.34 1288x300 59.04 1392x300 59.06 1488x300 59.25 1584x300 59.09 1688x300 59.41 1784x300 59.26 1888x300 59.20 496x360 59.05 600x360 59.88 792x360 59.46 896x360 59.37 992x360 59.37 1096x360 59.78 1192x360 59.75 1288x360 59.54 1392x360 59.64 1488x360 59.83 1584x360 59.80 1688x360 59.73 1784x360 59.71 1888x360 59.65 496x480 59.21 600x480 59.81 792x480 59.45 896x480 59.82 992x480 59.66 1096x480 59.58 1192x480 59.80 1288x480 59.70 1392x480 59.90 1488x480 59.81 1584x480 59.71 1688x480 59.89 1784x480 59.79 1888x480 59.74 496x540 59.88 600x540 59.70 792x540 59.61 896x540 59.58 992x540 59.88 1096x540 59.78 1192x540 59.77 1288x540 59.71 1392x540 59.90 1488x540 59.88 1584x540 59.83 1688x540 59.77 1784x540 59.76 1888x540 59.90 496x600 59.71 600x600 59.57 792x600 59.70 896x600 59.96 992x600 59.91 1096x600 59.81 1192x600 59.88 1288x600 59.85 1392x600 59.78 1488x600 59.76 1584x600 59.82 1688x600 59.95 1784x600 59.92 1888x600 59.86 496x660 59.79 600x660 59.64 792x660 59.90 896x660 59.79 992x660 59.79 1096x660 59.97 1192x660 59.86 1288x660 59.86 1392x660 59.79 1488x660 59.79 1584x660 59.79 1688x660 59.84 1784x660 59.84 1888x660 59.94 496x720 59.53 600x720 59.87 792x720 59.91 896x720 59.81 992x720 59.79 1096x720 59.95 1192x720 59.96 1288x720 59.97 1392x720 59.89 1488x720 59.90 1584x720 59.91 1688x720 59.86 1784x720 59.85 1888x720 59.94 496x780 59.80 600x780 59.66 792x780 59.81 896x780 59.72 992x780 59.78 1096x780 59.92 1192x780 59.95 1288x780 59.97 1392x780 59.90 1488x780 59.93 1584x780 59.96 1688x780 59.90 1784x780 59.93 1888x780 59.87 496x840 59.58 600x840 59.73 792x840 59.73 896x840 59.89 992x840 59.95 1096x840 59.86 1192x840 59.91 1288x840 59.96 1392x840 59.89 1488x840 59.92 1584x840 59.96 1688x840 59.90 1784x840 59.93 1888x840 59.88 496x900 59.98 600x900 59.82 792x900 59.77 896x900 59.91 992x900 59.98 1096x900 59.89 1192x900 59.95 1288x900 59.85 1392x900 59.93 1488x900 59.98 1584x900 59.89 1688x900 59.96 1784x900 59.88 1888x900 59.95 496x960 59.69 600x960 59.90 792x960 59.88 896x960 59.78 992x960 59.88 1096x960 59.98 1192x960 59.88 1288x960 59.95 1392x960 59.89 1488x960 59.95 1584x960 59.88 1688x960 59.96 1784x960 59.90 1888x960 59.95 496x1020 59.79 600x1020 59.97 792x1020 59.98 896x1020 59.87 992x1020 59.97 1096x1020 59.88 1192x1020 59.96 1288x1020 59.90 1392x1020 59.96 1488x1020 59.91 1584x1020 59.97 1688x1020 59.91 1784x1020 59.97 1888x1020 59.92 496x1080 59.89 600x1080 59.75 792x1080 59.85 896x1080 59.90 992x1080 59.84 1096x1080 59.92 1192x1080 59.87 1288x1080 59.96 1392x1080 59.89 1488x1080 59.97 1584x1080 59.93 1688x1080 59.94 1784x1080 59.91 1888x1080 59.95 496x1140 59.92 600x1140 59.89 792x1140 59.78 896x1140 59.88 992x1140 59.83 1096x1140 59.90 1192x1140 59.87 1288x1140 59.84 1392x1140 59.94 1488x1140 59.91 1584x1140 59.88 1688x1140 59.93 1784x1140 59.90 1888x1140 59.94 496x1200 59.69 600x1200 59.89 792x1200 59.83 896x1200 59.91 992x1200 59.88 1096x1200 59.83 1192x1200 59.94 1288x1200 59.92 1392x1200 59.85 1488x1200 59.94 1584x1200 59.92 1688x1200 59.89 1784x1200 59.87 1888x1200 59.91 1984x1200 (0x394) 199.250MHz -HSync +VSync h: width 1984 start 2120 end 2328 total 2672 skew 0 clock 74.57KHz v: height 1200 start 1203 end 1213 total 1245 clock 59.90Hz 1984x300 (0x3a3) 46.500MHz -HSync +VSync h: width 1984 start 2040 end 2232 total 2480 skew 0 clock 18.75KHz v: height 300 start 303 end 313 total 316 clock 59.34Hz 1984x360 (0x3b2) 55.750MHz -HSync +VSync h: width 1984 start 2040 end 2232 total 2480 skew 0 clock 22.48KHz v: height 360 start 363 end 373 total 376 clock 59.79Hz 1984x480 (0x3c1) 74.250MHz -HSync +VSync h: width 1984 start 2040 end 2232 total 2480 skew 0 clock 29.94KHz v: height 480 start 483 end 493 total 500 clock 59.88Hz 1984x540 (0x3d0) 84.500MHz -HSync +VSync h: width 1984 start 2056 end 2248 total 2512 skew 0 clock 33.64KHz v: height 540 start 543 end 553 total 562 clock 59.86Hz 1984x600 (0x3df) 94.500MHz -HSync +VSync h: width 1984 start 2056 end 2256 total 2528 skew 0 clock 37.38KHz v: height 600 start 603 end 613 total 624 clock 59.91Hz 1984x660 (0x3ee) 105.250MHz -HSync +VSync h: width 1984 start 2072 end 2272 total 2560 skew 0 clock 41.11KHz v: height 660 start 663 end 673 total 686 clock 59.93Hz 1984x720 (0x3fd) 115.500MHz -HSync +VSync h: width 1984 start 2080 end 2280 total 2576 skew 0 clock 44.84KHz v: height 720 start 723 end 733 total 748 clock 59.94Hz 1984x780 (0x40c) 125.750MHz -HSync +VSync h: width 1984 start 2088 end 2288 total 2592 skew 0 clock 48.51KHz v: height 780 start 783 end 793 total 810 clock 59.89Hz 1984x840 (0x41b) 136.250MHz -HSync +VSync h: width 1984 start 2096 end 2296 total 2608 skew 0 clock 52.24KHz v: height 840 start 843 end 853 total 872 clock 59.91Hz 1984x900 (0x42a) 147.000MHz -HSync +VSync h: width 1984 start 2096 end 2304 total 2624 skew 0 clock 56.02KHz v: height 900 start 903 end 913 total 934 clock 59.98Hz 1984x960 (0x439) 157.500MHz -HSync +VSync h: width 1984 start 2104 end 2312 total 2640 skew 0 clock 59.66KHz v: height 960 start 963 end 973 total 996 clock 59.90Hz 1984x1020 (0x448) 167.500MHz -HSync +VSync h: width 1984 start 2104 end 2312 total 2640 skew 0 clock 63.45KHz v: height 1020 start 1023 end 1033 total 1058 clock 59.97Hz 1984x1080 (0x457) 178.250MHz -HSync +VSync h: width 1984 start 2112 end 2320 total 2656 skew 0 clock 67.11KHz v: height 1080 start 1083 end 1093 total 1120 clock 59.92Hz 1984x1140 (0x466) 189.250MHz -HSync +VSync h: width 1984 start 2120 end 2328 total 2672 skew 0 clock 70.83KHz v: height 1140 start 1143 end 1153 total 1183 clock 59.87Hz DEBUGNOTE[15:48:29,530]: storeinfo(): xinitrc=ready DEBUGNOTE[15:48:29,543]: waitforlogentry(): dockerrc: Found log entry "xinitrc is ready" in xinit.log. DEBUGNOTE[15:48:29,700]: waitforlogentry(): containerrc: Waiting for logentry "containerrootrc=ready" in store.info DEBUGNOTE[15:48:29,711]: storeinfo(): containerid=f0846d61eb8cfa250e75cfe7ecb0cf3db3b01de56973b24daef5ebb753d41cb1 DEBUGNOTE[15:48:29,869]: dockerrc: Container is up and running. DEBUGNOTE[15:48:29,915]: dockerrc: 1. check for PID 1: 8430 DEBUGNOTE[15:48:29,926]: storeinfo(): pid1pid=8430 DEBUGNOTE[15:48:29,987]: storeinfo(): containerip=172.17.0.9 DEBUGNOTE[15:48:30,000]: dockerrc(): Starting containerrootrc with docker exec ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log <== /bin/cat /bin/chmod /bin/chown /usr/bin/cut cd /bin/cp /bin/date echo /usr/bin/env export /bin/grep /usr/bin/id /bin/ln /bin/ls /bin/mkdir /bin/mv printf /bin/rm /bin/sed /bin/sh /bin/sleep /usr/bin/tail /usr/bin/touch mkdir: created directory '/var/run/dbus' mkdir: created directory '/tmp/.ICE-unix' mkdir: created directory '/tmp/.X11-unix' mkdir: created directory '/tmp/.font-unix' ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/message.log <== DEBUGNOTE[15:48:30,279]: Running containerrootrc: Setup as root in container DEBUGNOTE[15:48:30,290]: containerrootrc: Container libc: glibc ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log <== removed '/etc/shadow' total 17084 drwxr-xr-x 7 debian debian 4096 Nov 25 15:41 . drwxr-xr-x 1 root root 4096 Nov 25 15:48 .. -rw-r--r-- 1 debian debian 220 Nov 25 14:52 .bash_logout -rw-r--r-- 1 debian debian 3526 Nov 25 14:52 .bashrc drwxr-xr-x 7 debian debian 4096 Nov 25 15:01 .cache drwxr-xr-x 9 debian debian 4096 Nov 25 15:01 .config drwx------ 3 debian debian 4096 Nov 25 15:01 .dbus -rw-r--r-- 1 debian debian 58 Nov 25 14:52 .gtkrc-2.0 drwxr-xr-x 3 debian debian 4096 Nov 25 14:52 .local -rw-r--r-- 1 debian debian 807 Nov 25 14:52 .profile drwxr-xr-x 2 debian debian 4096 Nov 25 14:52 Desktop -rw------- 1 debian debian 209530880 Nov 25 15:41 core ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/message.log <== x11docker[15:48:30,310]: Container system ID: debian DEBUGNOTE[15:48:30,321]: containerrootrc: debian:x:1000:1000:debian,,,:/home/debian:/bin/bash x11docker[15:48:30,336]: Searching for language locale matching fr x11docker note: Option --lang: Generating language locale fr_FR.utf8. ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log <== [verbose] LC_CTYPE: table for class "upper": 1949915152837 bytes [verbose] LC_CTYPE: table for class "lower": 18446744073709551615 bytes [verbose] LC_CTYPE: table for class "alpha": 18446744073709551615 bytes [verbose] LC_CTYPE: table for class "digit": 18446744073709551615 bytes [verbose] LC_CTYPE: table for class "xdigit": 18446744073709551615 bytes [verbose] LC_CTYPE: table for class "space": 18446744073709551615 bytes [verbose] LC_CTYPE: table for class "print": 18446744073709551615 bytes [verbose] LC_CTYPE: table for class "graph": 2241972929033 bytes [verbose] LC_CTYPE: table for class "blank": 2327872274973 bytes [verbose] LC_CTYPE: table for class "cntrl": 2396591751725 bytes [verbose] LC_CTYPE: table for class "punct": 18446744073709551615 bytes [verbose] LC_CTYPE: table for class "alnum": 18446744073709551615 bytes [verbose] LC_CTYPE: table for class "combining": 2461016261180 bytes [verbose] LC_CTYPE: table for class "combining_level3": 18446744073709551615 bytes [verbose] LC_CTYPE: table for map "toupper": 16777523 bytes [verbose] LC_CTYPE: table for map "tolower": 0 bytes [verbose] LC_CTYPE: table for map "totitle": 0 bytes [verbose] LC_CTYPE: table for width: 0 bytes ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/message.log <== DEBUGNOTE[15:48:32,302]: storeinfo(): locale=fr_FR.utf8 DEBUGNOTE[15:48:32,333]: Option --lang: Output of locale -a: C C.UTF-8 POSIX fr_FR.utf8 DEBUGNOTE[15:48:32,350]: storeinfo(): containerrootrc=ready DEBUGNOTE[15:48:32,362]: storeinfo(): dockerrc=ready DEBUGNOTE[15:48:32,383]: storepid(): Stored pid '9057' of 'dockerstopshell': 9057 ? 00:00:00 bash DEBUGNOTE[15:48:32,386]: waitforlogentry(): start_docker(): Waiting for logentry "dockerrc=ready" in store.info DEBUGNOTE[15:48:32,393]: waitforlogentry(): start_docker(): Found log entry "dockerrc=ready" in store.info. DEBUGNOTE[15:48:32,395]: storeinfo(): xtermrc=ready DEBUGNOTE[15:48:32,400]: watchpidlist(): Setting pid 8430 on watchlist: pid1pid DEBUGNOTE[15:48:32,427]: watchpidlist(): Watching pids: 8430 pts/0 00:00:00 init DEBUGNOTE[15:48:32,429]: storepid(): Stored pid '8430' of 'pid1pid': 8430 pts/0 00:00:00 init DEBUGNOTE[15:48:32,453]: watchpidlist(): Setting pid 5479 on watchlist: xinit DEBUGNOTE[15:48:32,480]: storepid(): Stored pid '5479' of 'xinit': 5479 ? 00:00:00 xinit DEBUGNOTE[15:48:32,496]: watchpidlist(): Watching pids: 8430 pts/0 00:00:00 init 5479 ? 00:00:00 xinit DEBUGNOTE[15:48:32,529]: watchpidlist(): Setting pid 5480 on watchlist: Xserver DEBUGNOTE[15:48:32,569]: storepid(): Stored pid '5480' of 'Xserver': 5480 ? 00:00:00 Xvfb DEBUGNOTE[15:48:32,592]: watchpidlist(): Watching pids: 8430 pts/0 00:00:00 init 5479 ? 00:00:00 xinit 5480 ? 00:00:00 Xvfb DEBUGNOTE[15:48:32,628]: Process tree of container: (maybe not complete yet) init(8430)---sh(8551)---sleep(8987) DEBUGNOTE[15:48:32,726]: Process tree of x11docker: bash(3921)-+-bash(4382)---tail(4386) |-bash(4384)---sleep(9040) |-bash(4385)---sleep(9038) |-bash(4406) |-bash(4419) |-bash(5124)---bash(9203)---pstree(9204) `-xinit(5479)-+-Xvfb(5480)-+-{Xvfb}(5481) | |-{Xvfb}(5482) | |-{Xvfb}(5483) | |-{Xvfb}(5484) | |-{Xvfb}(5485) | |-{Xvfb}(5486) | |-{Xvfb}(5487) | `-{Xvfb}(5488) `-sh(5497) Lost child of dockerrc (dockerstopshell): bash(9057) DEBUGNOTE[15:48:32,733]: storeinfo(): Stored info: cache=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285 stdout=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/stdout stderr=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/stderr x11dockerpid=3921 xserver=--xvfb pulseaudiomoduleid=19 DISPLAY=:105 XAUTHORITY=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client XSOCKET=/tmp/.X11-unix/X105 XDG_RUNTIME_DIR=/run/user/1000 Xenv= DISPLAY=:105 XAUTHORITY=/home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/Xauthority.client XSOCKET=/tmp/.X11-unix/X105 XDG_RUNTIME_DIR=/run/user/1000 tini=/usr/bin/docker-init containername=x11docker_X105_pccastor_obzy7v_wallet-latest_55302946285 runtime=UNDECLARED_RUNTIME containeruser=debian readyforX=ready xinitrc=ready containerid=f0846d61eb8cfa250e75cfe7ecb0cf3db3b01de56973b24daef5ebb753d41cb1 pid1pid=8430 containerip=172.17.0.9 locale=fr_FR.utf8 containerrootrc=ready dockerrc=ready xtermrc=ready DEBUGNOTE[15:48:32,739]: storepid(): Stored pids: 4406 watchpidlist 4419 watchmessagefifo 5124 containershell 9057 dockerstopshell 8430 pid1pid 5479 xinit 5480 Xserver DEBUGNOTE[15:48:32,745]: waitforlogentry(): containerrc: Found log entry "containerrootrc=ready" in store.info. DEBUGNOTE[15:48:32,749]: storeinfo(): x11docker=ready DEBUGNOTE[15:48:32,758]: Running containerrc: Unprivileged user commands in container ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/stderr <== x11docker/lxde: If the panel does not show an approbate menu and you encounter high CPU usage (seen with kata-runtime), please run with option --init=systemd. ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log <== x11docker/lxde: If the panel does not show an approbate menu and you encounter high CPU usage (seen with kata-runtime), please run with option --init=systemd. ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/stderr <== ** Message: 15:48:32.793: main.vala:101: Session is LXDE ** Message: 15:48:32.793: main.vala:102: DE is LXDE ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log <== ** Message: 15:48:32.793: main.vala:101: Session is LXDE ** Message: 15:48:32.793: main.vala:102: DE is LXDE ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/stderr <== (lxsession:190): Gtk-WARNING **: 15:48:32.795: cannot open display: :105 ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/share/container.log <== (lxsession:190): Gtk-WARNING **: 15:48:32.795: cannot open display: :105 ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/message.log <== x11docker[15:48:32,796]: containerrc: Container system: PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" DEBUGNOTE[15:48:32,809]: containerrc: HOME is not empty. Not copying from /etc/skel x11docker[15:48:32,868]: Container environment: container=docker DISPLAY=:105 HOME=/home/debian HOSTNAME=f0846d61eb8c LANG=fr_FR.utf8 OLDPWD=/tmp PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PULSE_COOKIE=/x11docker/pulseaudio.cookie PULSE_SERVER=unix:/x11docker/pulseaudio.socket PWD=/home/debian TERM=xterm USER=debian XAUTHORITY=/x11docker/Xauthority.client XDG_RUNTIME_DIR=/tmp/XDG_RUNTIME_DIR XDG_SESSION_TYPE=x11 DEBUGNOTE[15:48:32,890]: cmdrc: Running container command: /usr/local/bin/start DEBUGNOTE[15:48:33,335]: waitforlogentry(): tailstderr: Found log entry "x11docker=ready" in store.info. DEBUGNOTE[15:48:33,336]: waitforlogentry(): tailstdout: Found log entry "x11docker=ready" in store.info. DEBUGNOTE[15:48:33,598]: watchpidlist(): PID 8430 has terminated DEBUGNOTE[15:48:33,602]: time to say goodbye (watchpidlist 8430) ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/xinit.log <== xinit: connection to X server lost waiting for X server to shut down ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/message.log <== DEBUGNOTE[15:48:33,608]: time to say goodbye (watchpidlist) ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/xinit.log <== ==> /home/debian/.cache/x11docker/pccastor_obzy7v_wallet-latest-55302946285/message.log <== DEBUGNOTE[15:48:34,609]: time to say goodbye (main) DEBUGNOTE[15:48:34,616]: Terminating x11docker. DEBUGNOTE[15:48:34,620]: time to say goodbye (finish) DEBUGNOTE[15:48:34,653]: finish(): Checking pid 5480 (Xserver): (already gone) DEBUGNOTE[15:48:34,686]: finish(): Checking pid 5479 (xinit): (already gone) DEBUGNOTE[15:48:34,718]: finish(): Checking pid 8430 (pid1pid): (already gone) DEBUGNOTE[15:48:34,754]: finish(): Checking pid 9057 (dockerstopshell): 9057 ? 00:00:00 bash DEBUGNOTE[15:48:34,786]: finish(): Checking pid 5124 (containershell): (already gone) DEBUGNOTE[15:48:34,820]: finish(): Checking pid 4419 (watchmessagefifo): 4419 ? 00:00:00 bash DEBUGNOTE[15:48:34,855]: finish(): Checking pid 4406 (watchpidlist): (already gone) DEBUGNOTE[15:48:34,940]: Removing container x11docker_X105_pccastor_obzy7v_wallet-latest_55302946285 x11docker_X105_pccastor_obzy7v_wallet-latest_55302946285 DEBUGNOTE[15:48:36,046]: termpid(): Terminating 4419 (watchmessagefifo): 4419 ? 00:00:00 bash DEBUGNOTE[15:48:36,177]: x11docker exit code: 0