How to "ionic cordova run" in Docker?

For those like me who need a custom domain. You need to change the host file of the device to point to
197.168.1.101 backend.test
** 197.168.1.101 api.backend.test**
With:
adb pull /system/etc/hosts /myfolder
Edit the file

 adb remount
 adb push /myfolder/hosts /system/etc/hosts

As for the ionic build…

ionic cordova platform rm android
cordova platform rm android
ionic cordova platform add android

You want to take a look at this post:

And this:

1 Like