$ 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
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
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):
Build (3.1):
docker build -t android-studio .
docker run -it \
--privileged \
-v `pwd`/AndroidStudioProjects:/home/ubuntu/AndroidStudioProjects \
-v `pwd`/.android:/home/ubuntu/.android \
-v `pwd`/.AndroidStudio3.1:/home/ubuntu/.AndroidStudio3.1 \
-v `pwd`/.gradle:/home/ubuntu/.gradle \
-v `pwd`/opt:/opt/android-sdk \
-v /dev/bus/usb:/dev/bus/usb \
-v /dev/kvm:/dev/kvm \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v $XAUTHORITY:/home/ubuntu/.Xauthority \
--net host \
android-studio
- Download: [2.0 beta 2] (https://dl.google.com/dl/android/studio/ide-zips/2.0.0.11/android-studio-ide-143.2586769-linux.zip)
- http://tools.android.com/download/studio
- http://tools.android.com/download/studio/stable
- http://tools.android.com/download/studio/beta
- http://tools.android.com/download/studio/canary
Apache 2.0, 2015 8tory Inc.