nixos/docker-rootless: disable for root
This commit is contained in:
@@ -76,7 +76,11 @@ in
|
|||||||
# needs newuidmap from pkgs.shadow
|
# needs newuidmap from pkgs.shadow
|
||||||
path = [ "/run/wrappers" ];
|
path = [ "/run/wrappers" ];
|
||||||
environment = proxy_env;
|
environment = proxy_env;
|
||||||
unitConfig.StartLimitInterval = "60s";
|
unitConfig = {
|
||||||
|
# docker-rootless doesn't support running as root.
|
||||||
|
ConditionUser = "!root";
|
||||||
|
StartLimitInterval = "60s";
|
||||||
|
};
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "notify";
|
Type = "notify";
|
||||||
ExecStart = "${cfg.package}/bin/dockerd-rootless --config-file=${daemonSettingsFile}";
|
ExecStart = "${cfg.package}/bin/dockerd-rootless --config-file=${daemonSettingsFile}";
|
||||||
|
|||||||
Reference in New Issue
Block a user