-
-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: parse volume mounts using the same function as docker cli (#274)
volume mount paths should be of the form: `<src>:<dest>[:<options>]` Docs: https://docs.docker.com/storage/bind-mounts/#choose-the--v-or---mount-flag https://docs.docker.com/storage/volumes/#choose-the--v-or---mount-flag `src` can either be the name of a docker volume OR an absolute path on the host MountParser assumes that it's parsing a local absolute path for the `src` arg. However, as mentioned above, it's also legal to use a named docker volume. In addition, there can be the optional `options` section, with an additional colon. Rather than trying to capture all the edge cases coding it ourselves, we just import the same function that docker-cli uses to parse the volume.
- Loading branch information
1 parent
058423c
commit 74f0f53
Showing
5 changed files
with
69 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters