I am using docker.
In case of Ubuntu, this below is work
/etc/docker/daemon.json
{
"insecure-registries": ["192.168.1.1:5000"],
"data-root": "/data/test"
}
However, In case of NixOS, it fails.
virtualisation = {
docker = {
enable = true;
extraOptions = ''
--data-root "/data"
--insecure-registry "https://192.168.1.1:5000"
'';
};
}
this only works above option, which is --data-root
option.
and if I change the option’s order like this.
virtualisation = {
docker = {
enable = true;
extraOptions = ''
--insecure-registry "https://192.168.1.1:5000"
--data-root "/data"
'';
};
}
then, it works only insecure-registry
option.
So, How can we use these option at the same time ?
Please, tell me about this.