Replies: 3 comments 8 replies
-
There are 2 kinds of volumes, bind mounts and volumes. In this case you want a bind mount because you are trying to use mount a path from the host machine into the container. Call Also consider using PracticalOtel.OtelCollector.Aspire which already has this integration. cc @martinjt |
Beta Was this translation helpful? Give feedback.
-
Ask not why, but why not? :) Docker supports an entire folder. Visual Studio uses entire folders for its "fast docker debug mode". I intend to have a drop folder that the container will dump files to that can be analyzed after the run. I could spend some time and come up with dozens of use cases. |
Beta Was this translation helpful? Give feedback.
-
Are you referring to end user AppHost code? That's what I was trying to do but getting exceptions. I was assuming absolute to disk root, but it's not clear if that's the case. I did see some interesting paths in logs like "/run/mnt/desktop/c/etc..."... maybe not related. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm going outside the box a little here, and trying to override the otel collector the Aspire Dashboard/AppHost uses so that I can also share the collector with other processes.
When I get to the
DistributedAppBuilder.AddResource()......WithVolume()
part, I was expecting to be able to enter in docker volume info just like they would appear in adocker-compose.yaml
file. At least in Visual Studio, if you have a docker-compose, relative paths in it will be relative to your Solution folder.So here's what I'd like to pass into
WithVolume()
:.WithVolume("./Otel/Config", "/config")
However, I can't get past the following error. I've tried both absolute and relative paths, and I've tried them both with both backslashes and forward slashes.
Beta Was this translation helpful? Give feedback.
All reactions