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

Try rootless podman networks #125

Open
roberth opened this issue Jun 21, 2021 · 2 comments
Open

Try rootless podman networks #125

roberth opened this issue Jun 21, 2021 · 2 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@roberth
Copy link
Member

roberth commented Jun 21, 2021

NixOS/nixpkgs#125598 (comment), specifically containers/podman#9169

Possible issue containers/podman#10672 (not sure if "internal" network is used)

Ideally it just works and all that's needed is a one or two lines of docs.

@roberth roberth added help wanted Extra attention is needed good first issue Good for newcomers labels Jun 21, 2021
@tomprince
Copy link
Contributor

I've succesfully used rootless podman networks with arion[1]. I did need to do a couple of things:

  • I want to specify custom network attributes for containers, to set static IP address:
# In a service
{ out.service.networks.${network-name} = { ipv4_address = "192.0.2.1"; } }
  • I want to specify configuration for networks and volumes in the compose file:
# top-level
{ docker-compose.raw = {
  networks.${network-name} = { name = "${network-name}"; external = true; };
  volumes.nix = { name = "nix"; external = true; };
}; }

[1] though as my host system isn't nix, I'm just using the nix expression part of arion to generate yaml and images (see #132), which I copy to the host machine.

@roberth
Copy link
Member Author

roberth commented Aug 28, 2021

On NixOS we can use the dnsname plugin. Perhaps it can be used with rootless too somehow? That would be nicer than working with IPs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants