Bug 1915332

Summary: docker-podman doesn't accept the consistency=delegated mount option
Product: [Fedora] Fedora Reporter: István Tóth <stoty>
Component: podmanAssignee: Matthew Heon <mheon>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 33CC: acui, bbaude, container-sig, debarshir, dwalsh, jnovy, lsm5, mheon, pehunt, rh.container.bot, santiago, tsweeney
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-11 15:48:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description István Tóth 2021-01-12 13:08:36 UTC
Description of problem:
podman-docker doesn't accept the consistency=whatever mount option

Version-Release number of selected component (if applicable):
podman-docker-2.2.1-1.fc33.noarch

How reproducible:
run the docker-podman wrapper with the consistency=delegated option
--mount "type=bind,src=/src,dst=/dst,consistency=delegated" 

Steps to Reproduce:
docker run --rm -ti --env-file redacted --cidfile /redacted --mount type=bind,src=redacted,dst=redacted,consistency=delegated image

Actual results:
I gen an error:
Error: consistency: invalid mount option

Expected results:
docker-podman should just silently ignore the consistency=* Mac specific option, and run the command


Additional info:

This already seems to be implemented for the -v format, but not for --mount

According to the Docker docs, the consistency option should be ignored on Linux.

the possible values are 'cached', 'delegated', and 'consistent', but they should be ignored equally.

This is a widely used option in scripts run by developer machines, as this makes file I/O less horribly slow on MacOS.

See 
https://blog.rocketinsights.com/speeding-up-docker-development-on-the-mac/
http://docs.docker.oeynet.com/docker-for-mac/osxfs-caching/

Comment 1 Daniel Walsh 2021-01-28 22:52:24 UTC
Opened a PR for this

https://github.com/containers/podman/pull/9151

Comment 2 Daniel Walsh 2021-06-11 15:48:18 UTC
Fixed in podman 3.2