amrsa1 / Android-Emulator-image

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

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

Closed BenBlumer closed 10 months ago

BenBlumer commented 1 year 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 1 year 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 10 months ago

Ticket closed due ti inactivity