-
Notifications
You must be signed in to change notification settings - Fork 18.8k
cli: add --mount to docker run
#32251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
LGTM |
|
Moving to code review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mnt1 + ":/foo" instead of Sprintf?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mnt1 + ":/foo" instead of Sprintf?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐸
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one nit, LGTM otherwise 😅
(sorry, forgot to submit my review)
man/docker-run.1.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add the --mount flag to OPTIONS below?
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
|
@thaJeztah done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!!!
cli: add `--mount` to `docker run`
- What I did
Revert #28838
Update #28527
Plese refer to #28527 (comment) for the discussion so far.
This PR adds
--mounttodocker run.The syntax of
docker run --mountis identical todocker service create --mount.Some notes:
--volume-driveris ignored for--mounts. A warning will be printed on the client side when specified.--mountstill only supports "CSV" form. i.e.--mount type=volume,src=foo,dst=/barworks but--mount foo:/bardoes NOT work.--mountand-vsimultaneously.- How I did it
Revert #28838 + warning about "--volume-driver is ignored for --mount volumes"
- How to verify it
- Description for the changelog
cli: add
--mounttodocker run- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Akihiro Suda suda.akihiro@lab.ntt.co.jp