Help: Access via FTP (and some other questions)
dimzeta opened this issue · comments
Hi guys,
First of all, I'm pretty newbie/clumsy with QEMU/Docker.
I've developped a NodeJS app, and I want to package it with pkg. The thing is I want to run it on my Raspberry 4, with armv7l
. So I have to package it using the same architecture than a RPi to make it work.
1 - I tried to use dockerpi to do this job. For now, am I right?
2 - So, I successfully run dockerpi (pretty easy with docker run -it -p 5022:5022 lukechilds/dockerpi pi2
), but I cannot access to the RPi via FTP, or even connect to SSH from my terminal:
ssh pi@172.17.0.2 -p 5022
ssh: connect to host 172.17.0.2 port 5022: Operation timed out
Maybe I miss something?
3 - Also, when I watch my container with Docker Desktop, the CPU usage is always > 120%. Is it normal?
4 - The purpose is to build faster than a real RPi (it takes several hours). How can I improve the number of CPUs/RAM?
I know this is not the place to ask that, but if you have any other idea to build my NodeJS app onto armv7l
architecture, feel free to help me :)
Thank you!
You might have to enable SSH in Raspberry Pi OS before you can connect to it.
Have you installed any FTP server in the docker image already? I haven't tried, but I assume that should work on the same 5022 port.
For better performance you can also try something like https://github.com/multiarch/qemu-user-static and use a Debian arm image.