Docker Community Forums

Share and learn in the Docker community.

Access DLLs in another container

docker

(Adamniazi) #1

Is there a way to communicate between Docker containers without using sockets and networking. I am asking because I have multiple subsystems that I would like put into separate containers. But the subsystems are not perfectly decoupled and there are instances where one subsystem uses DLLs from another subsystem. I was wondering if there is a way to access a DLL in container B from container A?


(David Maze) #2

There isn’t.

In fact, I’d go one step further than that. One of the major benefits of Docker IMHO is that an image includes all of its code dependencies, so you totally avoid the problem where program A depends on library X version 3, and program B depends on library X version 4, and they can’t both be installed at the same time. That is: you can’t share DLLs (or Linux shared libraries) like this, and it’s a good thing.