Skip to content

Commit

Permalink
Merge pull request #9 from RobCannon/master
Browse files Browse the repository at this point in the history
Support host_mnt in mount path
  • Loading branch information
Angle authored Jan 11, 2018
2 parents cb95530 + 1a19c3c commit e9cf024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch.darkink.docker_volume_watcher.service/DockerMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class DockerMonitor {
public const String CONTAINER_STATE_RUNNING = "running";
public const String MOUNT_POINT_MODE_BIND = "bind";

private static readonly Regex m_SourceToHostPath = new Regex("^/([a-zA-Z])/(.*)$", RegexOptions.Compiled);
private static readonly Regex m_SourceToHostPath = new Regex("^(?:/host_mnt)?/([a-zA-Z])/(.*)$", RegexOptions.Compiled);
private Dictionary<String, IList<DockerNotifier>> m_ContainerNotifier;
private Timer m_Timer;
//private static readonly Object m_Lock = new Object();
Expand Down

0 comments on commit e9cf024

Please sign in to comment.