Commit f80e3da0 authored by David Johnson's avatar David Johnson
Browse files

Fix minor bug in libvnode_docker causing /proj /share not to mount.

Somebody left something somewhere...
parent 4d35b730
#!/usr/bin/perl -T #!/usr/bin/perl -T
# #
# Copyright (c) 2008-2017 University of Utah and the Flux Group. # Copyright (c) 2008-2018 University of Utah and the Flux Group.
# #
# {{{EMULAB-LICENSE # {{{EMULAB-LICENSE
# #
...@@ -2726,14 +2726,14 @@ sub vnodeCreate($$$$) ...@@ -2726,14 +2726,14 @@ sub vnodeCreate($$$$)
# #
# Add NFS mounts. # Add NFS mounts.
# #
my @binds = (); $args{"HostConfig"}{"Binds"} = [];
foreach my $path (values(%mounts)) { foreach my $path (values(%mounts)) {
my $bind = "${path}:${path}"; my $bind = "${path}:${path}";
if ($NFS_MOUNTS_READONLY) { if ($NFS_MOUNTS_READONLY) {
$bind .= ":ro"; $bind .= ":ro";
} }
push(@{$args{"HostConfig"}{"Binds"}},$bind);
} }
$args{"HostConfig"}{"Binds"} = \@binds;
# #
# Add some Emulab-specific mount points that contain information: # Add some Emulab-specific mount points that contain information:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment