Reputation: 100080
I installed docker on nixos, using:
nix-env -i docker
after that, dockerd was not running, so I started the daemon manually with:
dockerd
and in the logs, I see:
WARN[2019-06-26T01:02:31.784701442Z] could not change group /var/run/docker.sock to docker: group docker not found
should I care about this warning?
Upvotes: 11
Views: 5674
Reputation: 460
Make sure to restart your computer, and not just logout-login, to actually make sudo-less docker work.
Upvotes: 1
Reputation: 7369
When installing docker on NixOS, it's best to enable it in the NixOS configuration. Doing so will install docker as a system service.
Snippet for /etc/nixos/configuration.nix
:
virtualisation.docker.enable = true;
# ...
users.users.YOU = { # merge this with your unix user definition, "YOU" is for illustration
isNormalUser = true;
# ...
extraGroups = [
# ...
"docker"
];
};
Upvotes: 19
Reputation: 992
created a group docker
. Docker needs that user group to start as a service.
Upvotes: 3