-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Mounting relative volume from git stack #2368
Comments
Output of docker inspect (interesting mount part)
|
Just tested this with alpine instead of home assistant. The issue still persists |
It also shows this behaviour when you don't use a git repo but just a plain docker-compose file from the text editor |
Any suggestions on where this problem could come from? I've read #1647 should fix that, but it doesn't look like it does. |
? |
Hello, |
+1 I have the same expectations as OP |
+1 same problem and expectations as OP. As a workaround (Linux host):
|
Hi, This problem still persists. I understand it might be difficult to solve when pasting the contents of a compose-file in Portainer but shouldn't it be easier to fix when a repo is used? Clone the whole thing, then use paths relative to the compose file. |
Closing as a duplicate of #2046 |
Bug description
Portainer mounts the volume not based on absolute path of the host. But relative to container root?
Expected behavior
Mounting the relative path should be relative to the docker-compose.yaml file. It somehow mounts
/data/compose/13/Config/HomeAssistant
on the host instead of/var/lib/docker/volumes/portainer_data/_data/compose/13/Config/HomeAssistant
Briefly describe what you were expecting.
Steps to reproduce the issue:
Steps to reproduce the behavior:
/data
... and see that folder mounted instead of the correct folderTechnical details:
Docker version 18.06.1-ce, build e68fc7a
Linux 4.9.0-8-amd64 SMP Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64 GNU/Linux
docker run -p 9000:9000 portainer/portainer
):docker run --name portainer -d -p 80:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer:develop
Additional context
When deploying by nativly cloning and running docker-compose up this doesn't occur
The text was updated successfully, but these errors were encountered: