amrsa1 / Android-Emulator-image

The use of this Docker image simplifies the process of running an Android emulator within a Docker container
MIT License
83 stars 43 forks source link

Running the docker compose VNC-Service gives a warning and then exits. #11

Closed BenBlumer closed 5 months ago

BenBlumer commented 8 months ago

$ docker compose up VNC-Service

WARN[0000] The "START_VNC" variable is not set. Defaulting to a blank string.
[+] Running 1/0
 ✔ Container VNC-Service  Created                                0.0s
Attaching to VNC-Service
VNC-Service exited with code 0
amrsa1 commented 7 months ago

@BenBlumer

try the following :

  VNC-Service:
    image: android-emulator
    build: .
    ports:
      - 5900:5900
    container_name: VNC-Service
    environment: 
      VNC_PASSWORD: 123
    privileged: true
    command:
      - bash
      - -c
      - |
        ./start_vnc.sh
    tty: true
    stdin_open: true
amrsa1 commented 5 months ago

Ticket closed due ti inactivity