From a9c6e7fc332545563bb6088d67bd85fcc8a31ccf Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sun, 10 Nov 2019 13:21:14 +0100 Subject: [PATCH] Fix read only volumes mounting Follow-up for https://github.com/mafintosh/docker-run/pull/4 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 72136e9..05fb632 100644 --- a/index.js +++ b/index.js @@ -64,7 +64,7 @@ var run = function(image, opts) { var container = opts.volumes[host] copts.Volumes[host] = {} - if(!endsWith(container, ':rw') || !endsWith(container, ':ro')) container += ':rw' + if(!endsWith(container, ':rw') && !endsWith(container, ':ro')) container += ':rw' HostConfig.Binds.push(host+':'+container) })