I just try to use aind in docker by running
docker run -td --name aind --privileged -p 8080:8080 -e "WEBMODE=1" -v /lib/modules:/lib/modules:ro ghcr.io/aind-containers/aind
(refer to https://hub.docker.com/r/aind/aind , under Web mode (noVNC) )
It seems AnBox is running, (anbox-container-manager.service is active) but cannot connect to X server.
I don't know what to do next to fix it, any help is appreciated, thanks
---------Below are docker logs aind--------------------
WebSocket server settings:
- Listen on 0.0.0.0:8080
- Web server. Web root: /usr/share/novnc
- No SSL/TLS support (no cert file)
- Backgrounding (daemon)
+ echo 'websockify -> 0'
websockify -> 0
+ systemctl is-system-running --wait
running
+ systemctl status --no-pager -l anbox-container-manager
● anbox-container-manager.service - Anbox Container Manager
Loaded: loaded (/lib/systemd/system/anbox-container-manager.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-08-06 01:37:07 UTC; 4s ago
Process: 41 ExecStartPre=/usr/local/bin/anbox-container-manager-pre.sh (code=exited, status=0/SUCCESS)
Process: 55 ExecStartPre=/usr/local/share/anbox/anbox-bridge.sh start (code=exited, status=0/SUCCESS)
Main PID: 73 (anbox)
Tasks: 10 (limit: 1110)
Memory: 14.3M
CGroup: /docker/add9b591297f16de5c3658f647ddc1053cd2e00a693993b6d18e378626298378/system.slice/anbox-container-manager.service
├─73 /usr/local/bin/anbox container-manager --daemon --data-path=/var/lib/anbox --android-image=/aind-android.img --use-rootfs-overlay --force-squashfuse
└─91 squashfuse /aind-android.img /var/lib/anbox/rootfs -o rw,allow_other,dev,suid
Aug 06 01:37:06 add9b591297f anbox-container-manager-pre.sh[41]: + '[' 0 '!=' 0 ']'
Aug 06 01:37:06 add9b591297f anbox-container-manager-pre.sh[41]: + grep -q ashmem /proc/misc
Aug 06 01:37:06 add9b591297f anbox-container-manager-pre.sh[41]: + '[' '!' -e /dev/ashmem ']'
Aug 06 01:37:06 add9b591297f anbox-container-manager-pre.sh[41]: + grep -q binder /proc/devices
Aug 06 01:37:06 add9b591297f anbox-container-manager-pre.sh[41]: + grep binder /proc/filesystems
Aug 06 01:37:06 add9b591297f anbox-container-manager-pre.sh[51]: nodev binder
Aug 06 01:37:06 add9b591297f anbox-container-manager-pre.sh[41]: + '[' '!' -e /dev/binderfs/binder-control ']'
Aug 06 01:37:06 add9b591297f anbox-container-manager-pre.sh[41]: + mkdir -p /dev/binderfs
Aug 06 01:37:06 add9b591297f anbox-container-manager-pre.sh[41]: + mount -t binder none /dev/binderfs
Aug 06 01:37:07 add9b591297f systemd[1]: Started Anbox Container Manager.
+ waitUntil 'Waiting for ready /run/anbox-container.socket' 10 '[ -e /run/anbox-container.socket ]'
+ local 'message=Waiting for ready /run/anbox-container.socket'
+ local count=10
+ '[' -e /run/anbox-container.socket ']'
+ return 0
+ waitUntil 'Waiting for ready anbox' 60 'anbox wait-ready'
+ local 'message=Waiting for ready anbox'
+ local count=60
+ anbox wait-ready
+ anbox session-manager
[ 2022-08-06 01:37:12] [daemon.cpp:61@Run] [org.freedesktop.DBus.Error.ServiceUnknown] The name org.anbox was not provided by any .service files
+ echo 'Waiting for ready anbox'
Waiting for ready anbox
+ count=59
+ '[' 59 -lt 1 ']'
+ sleep 1
+ anbox wait-ready
+ echo 'Waiting for ready anbox'
Waiting for ready anbox
+ count=58
+ '[' 58 -lt 1 ']'
+ sleep 1
+ anbox wait-ready
+ echo 'Waiting for ready anbox'
Waiting for ready anbox
+ count=57
+ '[' 57 -lt 1 ']'
+ sleep 1
+ anbox wait-ready
+ echo 'Waiting for ready anbox'
Waiting for ready anbox
+ count=56
+ '[' 56 -lt 1 ']'
+ sleep 1
+ anbox wait-ready
+ echo 'Waiting for ready anbox'
Waiting for ready anbox
+ count=55
+ '[' 55 -lt 1 ']'
+ sleep 1
+ anbox wait-ready
+ echo 'Waiting for ready anbox'
Waiting for ready anbox
+ count=54
+ '[' 54 -lt 1 ']'
+ sleep 1
+ anbox wait-ready
+ echo 'Waiting for ready anbox'
Waiting for ready anbox
+ count=53
+ '[' 53 -lt 1 ']'
+ sleep 1
+ anbox wait-ready
+ return 0
+ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
[ 2022-08-06 01:41:01] [application_manager_client.cpp:38@TryLaunch] Failed to launch activity: [org.freedesktop.DBus.Error.Timeout] Connection timed out
+ finish
+ set +x
_____ ____ ____ ___ ____
| ____| _ \| _ \ / _ \| _ \
| _| | |_) | |_) | | | | |_) |
| |___| _ <| _ <| |_| | _ <
|_____|_| \_\_| \_\\___/|_| \_\
FvwmIconMan: Internal error with select: errno=Interrupted system call
X connection to :0 broken (explicit kill or server shutdown).
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
after 322 requests (322 known processed) with 0 events remaining.