mount whole docker directory

adjust mount location
This commit is contained in:
Pim Kunis 2024-02-07 21:58:23 +01:00
parent 3a874fa4f8
commit 06c61e2a61

View file

@ -77,11 +77,10 @@
};
microvm.shares = [{
source = "/data/vm_shares/${config.networking.hostName}/dnsmasq";
source = "/var/lib/microvms/${config.networking.hostName}/shares/dnsmasq";
mountPoint = "/var/lib/dnsmasq";
tag = "dnsmasq";
proto = "virtiofs";
socket = "dnsmasq.sock";
}];
};
};
@ -99,11 +98,10 @@
};
microvm.shares = [{
source = "/data/vm_shares/${config.networking.hostName}/docker_swarm";
mountPoint = "/var/lib/docker/swarm";
tag = "docker_swarm";
source = "/var/lib/microvms/${config.networking.hostName}/shares/docker";
mountPoint = "/var/lib/docker";
tag = "docker";
proto = "virtiofs";
socket = "docker_swarm.sock";
}];
networking = {
@ -135,11 +133,10 @@
lab.vm.id = 2;
microvm.shares = [{
source = "/data/vm_shares/${config.networking.hostName}/docker_swarm";
mountPoint = "/var/lib/docker/swarm";
tag = "docker_swarm";
source = "/var/lib/microvms/${config.networking.hostName}/shares/docker";
mountPoint = "/var/lib/docker";
tag = "docker";
proto = "virtiofs";
socket = "docker_swarm.sock";
}];
networking = {
@ -171,11 +168,10 @@
lab.vm.id = 3;
microvm.shares = [{
source = "/data/vm_shares/${config.networking.hostName}/docker_swarm";
mountPoint = "/var/lib/docker/swarm";
tag = "docker_swarm";
source = "/var/lib/microvms/${config.networking.hostName}/shares/docker";
mountPoint = "/var/lib/docker";
tag = "docker";
proto = "virtiofs";
socket = "docker_swarm.sock";
}];
networking = {