Skip to content

Connect to specific device after startup #48

@GuyKh

Description

@GuyKh

A question, more than an issue.

Currently, I'm starting the container via docker-compose:

  adb:
    ports:
      - 5037:5037
    privileged: true
    volumes:
      - ${HOME}/docker/adbd:/root/.android
      - /dev/bus/usb:/dev/bus/usb
    container_name: adbd
    image: devicefarmer/adb
    restart: unless-stopped

But every time afterwards, I have to run this to connect to 192.168.1.123

docker exec -it adbd adb connect 192.168.1.123:5555

Is there a way to run a command after the container is up so I wouldn't have to do it manually?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions