Giter Site home page Giter Site logo

scrcpy-docker's Introduction

Docker Build Status Docker Pulls AMD Size Intel Size Nvidia Size

scrcpy

Docker image to run scrcpy.

Usage

Before running the image, Docker must be allowed to connect to the X server:

xhost + local:docker

A separate image has been built for AMD, Intel, & Nvidia graphics hardwares. To get the image for your hardware, simply append :<graphics type> to the image name (pierlo1/scrcpy) where graphics type can be:

  • amd
  • intel
  • nvidia

For example: pierlo1/scrcpy:amd.

Running with Docker

To run the image with Docker run:

docker run --rm -i -t --privileged \
    -v /dev/bus/usb:/dev/bus/usb \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e DISPLAY=$DISPLAY \
    pierlo1/scrcpy:<graphics type>

Running with Docker Compose

To run with Docker Compose, set the SCRCPY_GRAPHICS_TYPE environment variable to one of the graphics types mentioned earlier. For persistence, make a copy of .env.example, name it .env, and configure it.

Once done, run the command:

docker-compose run --rm scrcpy

The scrcpy_adb_keys volume is used to preserve the adb authorization keys.

Running scrcpy

Inside the container, verify you can see your Android device with:

adb devices

Note: make sure the adb daemon is not running on the host (adb kill-server) to view devices in the container.

And finally, run scrcpy:

scrcpy [options]

scrcpy-docker's People

Contributors

pierlon avatar untoreh avatar gia90 avatar waahhhh avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.