cyberkernelofficial / docker-in-termux

This repository contains instructions on how to install Docker in Termux, without root.
MIT License
151 stars 17 forks source link

In Alpine Linux, I can't connect to Internet #7

Closed BigWanGa closed 3 months ago

BigWanGa commented 4 months ago

At step 10, shell returns me "wget: bad address 'raw.githubusercontent.com'" And I found that the system in qemu can't connect Internet

How should I config my network? thx

cyberkernelofficial commented 4 months ago

Below step 10, i have mentioned this. IMG_20240401_152152

BigWanGa commented 4 months ago

thx for reply! I've been struggling with flashing my device these past few days (because I saw a method to recompile the Android firmware to support Docker), but to no avail.

I indeed didn't notice this prompt, thank you for pointing it out!

However, I still failed after trying it. Perhaps it's due to the wrong network segment? Could you explain the cause of this error so that I can customize a solution for myself?

cyberkernelofficial commented 4 months ago

Can you please send us screenshot.

BigWanGa commented 4 months ago

Screenshot_20240404-154911_Termux Yeah, here is

cyberkernelofficial commented 4 months ago

Don't use 'ifup eth0', only use the 'echo' command. If you encounter further errors, I've provided a link in the acknowledgment. Visit there to find your solution.

BigWanGa commented 4 months ago

Don't use 'ifup eth0', only use the 'echo' command. ——Doesn't work, but thank you anyway, I'll find more solution

BigWanGa commented 3 months ago

I found soluntion now

  1. start qemu without dns=8.8.8.8 at step 7 (maybe useless)
  2. ping 8.8.8.8, success
  3. after ifup eth0, ```echo "nameserver 8.8.8.8" > /etc/resolv.conf```` ---because my gateway is 10.0.2.1, not 192.x.x.x
  4. ping google, success
  5. edit answerfile, change content of "INTERFACESOPTS":
    
    "auto lo
    iface lo inet loopback

auto eth0 iface eth0 inet dhcp "



btw, my "KEYMAPOPTS" should be "us us" 

The remaining steps went smoothly, thank you for your efforts :)