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