Public | Automated Build

Last pushed: a year ago
Short Description
android-studio
Full Description

android studio docker




Usage

$ curl -L https://github.com/yongjhih/docker-android-studio/raw/master/docker-android-studio > ~/bin/android-studio
$ chmod a+x ~/bin/android-studio

$ android-studio

Usage with docker-compose

Beta:

wget https://github.com/yongjhih/docker-android-studio/raw/master/docker-compose.yml
docker-compose up android-studio-beta

Stable:

wget https://github.com/yongjhih/docker-android-studio/raw/master/docker-compose.yml
docker-compose up android-studio-stable

Usage without docker-compose

Beta (2.0-beta-2):

docker run -it \
  --privileged \
  -v $HOME/AndroidStudioProjects:/home/ubuntu/AndroidStudioProjects \
  -v $HOME/.android:/home/ubuntu/.android \
  -v $HOME/.AndroidStudioPreview2.0:/home/ubuntu/.AndroidStudioPreview2.0 \
  -v /dev/bus/usb:/dev/bus/usb \
  -v /dev/kvm:/dev/kvm \
  -v $ANDROID_HOME:/opt/android-sdk \
  -e DISPLAY=$DISPLAY \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -v $XAUTHORITY:/home/ubuntu/.Xauthority \
  --net host \
  yongjhih/android-studio

Stable (1.5.1):

docker run -it \
  --privileged \
  -v $HOME/AndroidStudioProjects:/home/ubuntu/AndroidStudioProjects \
  -v $HOME/.android:/home/ubuntu/.android \
  -v $HOME/.AndroidStudio1.5:/home/ubuntu/.AndroidStudio1.5 \
  -v /dev/bus/usb:/dev/bus/usb \
  -v /dev/kvm:/dev/kvm \
  -v $ANDROID_HOME:/opt/android-sdk \
  -e DISPLAY=$DISPLAY \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -v $XAUTHORITY:/home/ubuntu/.Xauthority \
  --net host \
  yongjhih/android-studio:1.5.1

Ref.

LICENSE

Apache 2.0, 2015 8tory Inc.

Docker Pull Command
Owner
yongjhih
Source Repository

Comments (2)
hkashlan
10 months ago

Thank you for your docker but I am getting error message after I am running (on Mac)
docker-compose up android-studio-stable
Error Message:
{create .: "." includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed
ERROR: Encountered errors while bringing up the project.
}

zl2016
a year ago

does this ubuntu without desktop?