I'm aware that Docker containers can share a data volume but is it possible for them to share frameworks? For instance, if i have two .NET services running on IIS can I just share the framework between them?
相关问题
- Generic Generics in Managed C++
- Docker task in Azure devops won't accept "$(pw
- How to Debug/Register a Permanent WMI Event Which
- 'System.Threading.ThreadAbortException' in
- Bulk update SQL Server C#
相关文章
- .net中MessageBox.Show使用问题
- IdentityServer 报错:"idp claim is missing"
- 请教IIS URL重定向的问题
- 在 IdentityServer 中如何给 id token 添加更多信息
- Net core3.1 在 centos 用docker 问题
- IdentityServer 的 Selector 在哪个 nuget 包
- 使用 IdentityServer 的项目遭遇错误:"IDX20803: Unable to obt
- ASP.NET Core ConfigureServices 中从 appsettings.json
Yes you can, what you usually do is
Alternative A:
create a busybox image and COPY your framework, expose the location as a volume
VOLUME /opt/framework/
While the
busyscript.sh
looks likeAdd this image as a service in your docker-compose.yml as lets say "framework", then, on the services you want them to consume, you add
Pros:
Con:
Alternative B You use one of your services as the "framework base", lets say service A, that means you copy the framework on that service ( one of the 2 consuming it ) and also again use
VOLUME /opt/framework
to expose it as volumein the service B, the same way, you mount the volume
Pro:
Con: