-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
nixos-container tool is broken if $NIXOS_CONFIG environment variable is set #22948
Comments
Could you try again with the current master, I've merged a systemd patch fixing docker and lxc. |
I tried again using today's
|
@globin can you point me to the patch? For docker the workaround is to add this in the configuration.nix: {
boot.kernelParams = [
"systemd.legacy_systemd_cgroup_controller=1"
];
} See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=843509 |
See also moby/moby#16238 |
See 31ff2ac for the bump in nixpkgs and the cherry-picked commit: systemd/systemd@843d5ba But I don't think this actually is relevant to this issue, but I still haven't been able to reproduce it.. |
Cannot reproduce (
|
I'm also not able to reproduce this. But why would the container even wait for a boot device or the wireless interface? I also noticed:
@peti Is latitude the hostname of your host system and thus the host config used in the container somehow? |
@fpletz, yes, latitude is the name of host system. I don't think that the host's config should be used inside of the container. I created an empty container by running |
@peti it most likely fail because it fails to mount something ( Update: After reading your logs, I saw that that it tries to mount this disk
|
I added the
Notice how the container even attempts to set up a So clearly this container is created using the host's |
@peti have you had any more insights what could be causing this? I've been using the containers a lot and haven't had any issues which are remotely similar to this. |
The problem is caused by the fact that I have the environment variable
With that variable defined, container operations fail. If I remove the variable, containers work fine. |
Ah thanks, working on it 🚧 |
fixes NixOS#22948 (cherry picked from commit 9b9416c)
I tried to create and run a container on nixos 17.03pre100896 (4450327). Unfortunately, this won't work:
The relevant bit of the journal seems to be:
Apparently, the container cannot find it's boot device.
The text was updated successfully, but these errors were encountered: