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

Installing any libcontainer related software (runc, podman, cri-o) bricks nixos-container #77925

Closed
arianvp opened this issue Jan 17, 2020 · 8 comments · Fixed by #87268
Closed
Labels
0.kind: bug Something is broken 6.topic: nixos-container Imperative and declarative systemd-nspawn containers

Comments

@arianvp
Copy link
Member

arianvp commented Jan 17, 2020

Describe the bug
NixOS Containers expect /etc/containers to be used by it. but this is a directory that is used by libcontainer-compatible systems like podman. More specifically it creates a file /etc/containers/registries.conf

nixos-container.pl then hard-crashes as it expects its own *.conf files to live there on the following line:

foreach my $confFile2 (glob "/etc/containers/*.conf") {
but that file but it dies instead

To Reproduce
Install something libcontainer-y and use it
nixos-container is now broken

Expected behavior
nixos-container should not namesquat /etc/containers

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@stale
Copy link

stale bot commented Jul 15, 2020

Hello, I'm a bot and I thank you in the name of the community for opening this issue.

To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human.

The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it.

If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them.

Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 15, 2020
@arianvp
Copy link
Member Author

arianvp commented Jul 15, 2020 via email

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 15, 2020
@stale
Copy link

stale bot commented Jan 12, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 12, 2021
@arianvp
Copy link
Member Author

arianvp commented Jan 12, 2021

Not stale

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 12, 2021
@puffnfresh
Copy link
Member

Moving this to /etc/nixos/containers makes more sense to me.

@stale
Copy link

stale bot commented Oct 1, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Oct 1, 2021
@arianvp
Copy link
Member Author

arianvp commented Oct 3, 2021

Not stale

@adisbladis
Copy link
Member

I have touched up #87268 which fixes this. PTAL.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: nixos-container Imperative and declarative systemd-nspawn containers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants