You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.
Description
Mounting a relative path - such as ./mounted-folder - renders as mounted-folder.
Then when running docker-compose up I receive this error: invalid mount config for type "bind": invalid mount path: 'mounted-folder' mount path must be absolute.
I would expect the source path to stay as is.
so it ignores current directory and assumes, that the relative folder is relative to folder /cnab/app.
This makes rendering of docker-compose.yml not usable for docker-compose command.
Possible solutions:
skip: skip supporting docker app render for docker-compose using volumes bound to relative folder. Call this use case as out of scope for docker app.
render-mode: Introduce option --render-mode with options docker-compose and app. docker-compose would respect relative folders, app would assume relative folders to be relative to /cnab/app. Default render-mode would be app.
volumes-root: Introduce option --volumes-root defaulting to /cnab/app.
I would prefer the render-mode solution as it brings real value to docker-compose users allowing to parametrize the application as needed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Mounting a relative path - such as
./mounted-folder
- renders asmounted-folder
.Then when running
docker-compose up
I receive this error:invalid mount config for type "bind": invalid mount path: 'mounted-folder' mount path must be absolute
.I would expect the
source
path to stay as is.Steps to reproduce the issue:
.dockerapp
filedocker app render
Describe the results you received:
Describe the results you expected:
Output of
docker version
:Output of
docker-app version
:Output of
docker info
:The text was updated successfully, but these errors were encountered: