Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl: (52) Empty reply from server #1

Closed
albolizo opened this issue Dec 12, 2022 · 3 comments
Closed

curl: (52) Empty reply from server #1

albolizo opened this issue Dec 12, 2022 · 3 comments

Comments

@albolizo
Copy link

Hi,

inside the docker-qemu-rpi-os container run as following:
docker run -td -p 127.0.0.1:5022:5022 -p 127.0.0.1:8080:8080 carlosperate/qemu-rpi-os-lite
I just installed apache2:

sudo apt-get update
sudo apt-get install apache2

From the Windows host I run:
curl http://127.0.0.1:8080/
but I only get the following error message:

curl: (52) Empty reply from server

Do you have any idea why this happens? Thanks and regards

@carlosperate
Copy link
Owner

Are you actually running a server on the Raspberry Pi container? From those steps it looks like you have only installed it.

@albolizo
Copy link
Author

It's running because curl http://127.0.0.1:8080/ in the guest machine works fine

@carlosperate
Copy link
Owner

Right, looks like the SSH port is forwarded by default, but any other ports need an update in the Qemu commands.

You can probably fork this repo (or dockerpi), apply this PR and then you should be able to forward that port:
lukechilds/dockerpi#32

Alternatively you could try serving on the SSH port to see if that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants