`docker build` hangs at Step 33 on Windows 10 Home
Hi,
I just recently downloaded and setup the DockerDesktop for windows, downloaded these codes and tried to create a docker build by issuing the command :
docker build -t react-native .
It was downloading the files fine but then stops after the line:
Step 33/42 : RUN chown -R $USERNAME:$USERNAME $ANDROID_HOME ---> Running in 01c1c10b110d
I've waited and tried to run again the same build command after an hour but it still stops after that. I tried it 3 times. Still stops after Step 33 and was not able to continue the rest of the commands in the Dockerfile.
I did not encounter any error messages.
I ran this inside the Visual Studio Code IDE.
Below is my docker version:
Microsoft Windows [Version 10.0.19041.330] (c) 2020 Microsoft Corporation. All rights reserved.
C:\Workspaces>docker version
Client: Docker Engine - Community
Version: 19.03.8
API version: 1.40
Go version: go1.12.17
Git commit: afacb8b
Built: Wed Mar 11 01:23:10 2020
OS/Arch: windows/amd64
Experimental: false
Server: Docker Engine - Community Engine: Version: 19.03.8 API version: 1.40 (minimum version 1.12) Go version: go1.12.17 Git commit: afacb8b Built: Wed Mar 11 01:29:16 2020 OS/Arch: linux/amd64 Experimental: false containerd: Version: v1.2.13 GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429 runc: Version: 1.0.0-rc10 GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd docker-init: Version: 0.18.0 GitCommit: fec3683
Were you able to complete the 42 steps? How?
Thanks!
Sol
Hi Sol,
It's been a very long time since I used this project, but I did just try it (docker build -t react-native .) and it worked fine for me without any issues.
The only explanation I can think of is that it might have something to do with you being on Windows. Windows is a notoriously problematic OS for developing on (I'm running Linux). I also seem to remember people saying Docker on Windows can be a bit tricky as well :frowning_face:
Do you get any output from the Docker build after these two lines?
Step 33/42 : RUN chown -R $USERNAME:$USERNAME $ANDROID_HOME
---> Running in 01c1c10b110d
Luke
Hi Luke,
Thanks for your response.
Yup. I guess that's it. I think you're right. Maybe it's because I'm using Linux containers on Windows 10 Home. I guess I really need to update my Windows to Pro huh. Anyway, to answer your question, I waited for more than an hour to get some response after that line but nada. I didn't receive any.
Will update you if this works out after upgrading my Windows.
Cheers,
Sol
On Mon, Jun 29, 2020, 10:43 PM Luke Mayhew [email protected] wrote:
Hi Sol,
It's been a very long time since I used this project, but I did just try it (docker build -t react-native .) and it worked fine for me without any issues.
The only explanation I can think of is that it might have something to do with you being on Windows. Windows is a notoriously problematic OS for developing on (I'm running Linux). I also seem to remember people saying Docker on Windows can be a bit tricky as well ☹️
Do you get any output from the Docker build after these two lines?
Step 33/42 : RUN chown -R $USERNAME:$USERNAME $ANDROID_HOME
---> Running in 01c1c10b110d
Luke
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mayhewluke/react-native-docker/issues/2#issuecomment-651166748, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADF5TG426A4MBA4AJACXKLDRZCR7TANCNFSM4OKQYE5A .
I guess I really need to update my Windows to ~Pro~ Mac/Linux huh.
:point_up: Fixed that for you :wink: (I'm joking (only partly :laughing: ))
I waited for more than an hour to get some response after that line but nada. I didn't receive any.
That's super weird. What a bummer. Well, definitely let me know if it's any better after upgrading Windows - I hope that fixes it for you!