mount whole docker directory
adjust mount location
This commit is contained in:
parent
3a874fa4f8
commit
06c61e2a61
1 changed files with 10 additions and 14 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue