private void addVolumes(StringBuilder b) {
        for (CopyEntry e : copyEntries) {
            if (e.export != null ? e.export : baseImage == null) {
                addVolume(b, targetDirForEntry(e));
            }
        }

        if (exportTargetDir != null ? exportTargetDir : baseImage == null) {
            addVolume(b, basedir);
        }

        for (String volume : volumes) {
            addVolume(b, volume);
        }
    }
Escape any slashes, quotes, and newlines int the value.  If any escaping occurred, quote the value.
@param key The key
@param value The value
@return Escaped and quoted key="value"
src/main/java/io/fabric8/maven/docker/assembly/DockerFileBuilder.java