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/