all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: edk@beaver-labs.com
To: help-guix@gnu.org
Subject: Can't bind to port 80 from inside a Guix container
Date: Wed, 21 Apr 2021 17:11:16 +0200	[thread overview]
Message-ID: <878s5b7jvv.fsf@rdklein.fr> (raw)

Dear fellow Guixers,

I'm trying to run nginx with `guix system container --network toto.scm`,
and I get the following error:

nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)

despite the container script being launched with sudo.

I got a root shell inside the container, checked that the corresponding
process also belongs to root from outside the container, and still don't
have the right to bind to port 80, with any software (this is not an
nginx error).

netcat lets me launch `nc -l 80` but I can't reach it, I don't think it
is actually binding.

Is this a known problem or limitation of guix containers ?

What do you suggest to try to troubleshoot this issue ?

Cheers,

Edouard.


             reply	other threads:[~2021-04-21 15:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-21 15:11 edk [this message]
2021-04-28 19:12 ` Can't bind to port 80 from inside a Guix container Edouard Klein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878s5b7jvv.fsf@rdklein.fr \
    --to=edk@beaver-labs.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.