Bug 1915332 - docker-podman doesn't accept the consistency=delegated mount option
Summary: docker-podman doesn't accept the consistency=delegated mount option
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: podman
Version: 33
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Matthew Heon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-12 13:08 UTC by István Tóth
Modified: 2021-06-11 15:48 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-06-11 15:48:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.