lukechilds / dockerpi

A Virtualised Raspberry Pi inside a Docker image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slow Internet speed

cdupont opened this issue · comments

Hello,
I'm running a Raspian in Dockerpi:

docker run -it --sysctl net.ipv4.ping_group_range="0 2147483647" -v /2020-02-13-raspbian-buster-lite.img:/sdcard/filesystem.img lukechilds/dockerpi:vm

I'm getting very slow internet speed inside. For example cloning with git:

git clone XXX
...
receiving objects:  49% (573/1155), 34.26 MiB | 123.00 KiB/s

This is confirmed by a speed test:

pi@raspberrypi:~$ curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
Retrieving speedtest.net configuration...
Testing from AGSM Lighting SRL (213.171.98.58)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Prometeus di Daniela Agro (Cologno Monzese) [133.57 km]: 21.552 ms
Testing download speed................................................................................
Download: 9.34 Mbit/s
Testing upload speed................................................................................................
Upload: 26.43 Mbit/s

On the host, I get speeds that are 10X-40X more.