Git Product home page Git Product logo

Comments (3)

rouzwelt avatar rouzwelt commented on July 16, 2024

hey, thanks for this, didnt want to open a new issue, but wanted to know if it works on cloud VMs or shared vCPU VPS?

from android-studio-docker.

HeraclitoDeEfeso avatar HeraclitoDeEfeso commented on July 16, 2024

I'm having the same problem:

$ ./build.sh
[+] Building 3.5s (16/33)
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 2.25kB                                                                             0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 52B                                                                                   0.0s
 => [internal] load metadata for docker.io/library/ubuntu:18.04                                                    3.0s
 => [internal] load build context                                                                                  0.0s
 => => transferring context: 3.34kB                                                                                0.0s
 => [ 1/29] FROM docker.io/library/ubuntu:18.04@sha256:ca70a834041dd1bf16cc38dfcd24f0888ec4fa431e09f3344f354cf8d1  0.0s
 => CACHED [ 2/29] RUN dpkg --add-architecture i386                                                                0.0s
 => CACHED [ 3/29] RUN apt-get update && apt-get install -y         build-essential git neovim wget unzip sudo     0.0s
 => CACHED [ 4/29] RUN groupadd -g 1000 -r android                                                                 0.0s
 => CACHED [ 5/29] RUN useradd -u 1000 -g 1000 --create-home -r android                                            0.0s
 => CACHED [ 6/29] RUN adduser android libvirt                                                                     0.0s
 => CACHED [ 7/29] RUN adduser android kvm                                                                         0.0s
 => CACHED [ 8/29] RUN echo "android:android" | chpasswd                                                           0.0s
 => CACHED [ 9/29] RUN echo "android ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-android                           0.0s
 => CACHED [10/29] RUN usermod -aG sudo android                                                                    0.0s
 => CACHED [11/29] RUN usermod -aG plugdev android                                                                 0.0s
 => ERROR [12/29] RUN chown android:android /androidstudio-data                                                    0.4s
------
 > [12/29] RUN chown android:android /androidstudio-data:
#15 0.432 chown: cannot access '/androidstudio-data': No such file or directory
------
executor failed running [/bin/sh -c chown $USER:$USER /androidstudio-data]: exit code: 1

This is from Ubuntu image under WSL2

from android-studio-docker.

gycold avatar gycold commented on July 16, 2024

i think just because of that it use VOLUME command,so just shield this two lines in dockerfile:
VOLUME /androidstudio-data
RUN chown $USER:$USER /androidstudio-data

or,change androidstudio-data to studio-data,just same as the dirname in the same path......

from android-studio-docker.

Related Issues (14)

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.