Re: Port forwarding for Guix containers

2020-12-03 Thread Zhu Zihao
Thank you Jason. Your code looks good, but after some search and reading, I found it's a very very complicate issue for networking between containers, it may not available to manage it in a declarative way(or say Guix way). So I decide to continue to use Docker, and leave iptables for Docker to p

Re: Port forwarding for Guix containers

2020-11-25 Thread Jason Conroy
Hi Zihao, It sounds like you're running Guix for your host OS and want to have Guix containers inside of that? If that's so, then my existing config won't be much use to you: right now I'm running my Guix containers (the `guix system container` shell scripts) inside of Debian via systemd. But in

Re: Port forwarding for Guix containers

2020-11-23 Thread Zhu Zihao
I try to search a lightweight network sharing solution for containers without Docker. But when my search query contains keyword "container", almost all results referring to Docker... :( -- Retrieve my PGP public key: https://meta.sr.ht/~citreu.pgp Zihao signature.asc Description: PGP signatur

Re: Port forwarding for Guix containers

2020-11-23 Thread Zhu Zihao
That's what I want to say, thank you! I want to combine different software in containers in docker-compose like way. It's more similar with a system container then a `guix environment` container. I'm not a Docker hater, but docker will corrupt your iptables entry and make the system impure. If y

Re: Port forwarding for Guix containers

2020-11-23 Thread Jason Conroy
Hi Edouard, I completely agree that this sort of composition is convenient for a group of services that share a single dependency graph. For example, when deploying a web application in a container, one could also provide an nginx server there for its exclusive use, and maybe even a database server

Re: Port forwarding for Guix containers

2020-11-22 Thread edk
The trick is that guix being written in scheme, operating system declarations can be written in a composable way, where the port N can be a parameter. The way I see it, it is when you compose all your services together on one host that you decide which service gets which port, and declare all th

Re: Port forwarding for Guix containers

2020-11-21 Thread Jason Conroy
I agree with Zihao that containers have certain use cases where it's important to use separate network namespaces for each instance, with traffic forwarded selectively between host and guest. Security (and hence firewalling) is part of the issue, but it's also about the container's maintainability

Re: Port forwarding for Guix containers

2020-11-21 Thread Edouard Klein
zimoun writes: > Hi, > > On Fri, 20 Nov 2020 at 19:26, Christopher Baines wrote: >> Zhu Zihao writes: >> >>> I found guix container "created by `guix environment --container` or >>> `guix system container`" is very useful to isolate some service. But >>> it only supports fully isolated network

Re: Port forwarding for Guix containers

2020-11-21 Thread zimoun
Hi, On Fri, 20 Nov 2020 at 19:26, Christopher Baines wrote: > Zhu Zihao writes: > >> I found guix container "created by `guix environment --container` or >> `guix system container`" is very useful to isolate some service. But >> it only supports fully isolated network namespace or just share wit

Re: Port forwarding for Guix containers

2020-11-20 Thread Christopher Baines
Zhu Zihao writes: > I found guix container "created by `guix environment --container` or > `guix system container`" is very useful to isolate some service. But > it only supports fully isolated network namespace or just share with > host, it's not so safe IMO. I'll assume that a fully isolated

Re: Port forwarding for Guix containers

2020-11-20 Thread Bonface M. K.
"Zhu Zihao" writes: > Hi, Guix users! > > > I found guix container "created by `guix > environment --container` or `guix system > container`" is very useful to isolate some > service. But it only supports fully isolated > network namespace or just share with host, it's > not so safe IMO. > > > >

Port forwarding for Guix containers

2020-11-19 Thread Zhu Zihao
Hi, Guix users! I found guix container "created by `guix environment --container` or `guix system container`" is very useful to isolate some service. But it only supports fully isolated network namespace or just share with host, it's not so safe IMO. In Docker, there's port forwarding, allow