Linux & Windows containers at the same time? #827
-
As per the following statement on the website. Can batect run Linux & Windows containers at the same time or is it still tied to the "Docker Desktop Switch"? I have a custom setup with 2 docker demons running, one is Docker Desktop running in Windows Container mode & the other is a standalone docker daemon running in WSL2. I find this useful for legacy Windows stacks that are being incrementally modernized. So some of the stack is Windows & other parts are Linux. Could batect be configured to talk to different daemons based on the type of container? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Is this potentially also a valid use of #78? |
Beta Was this translation helpful? Give feedback.
-
Batect is limited to whatever the Docker daemon it is talking to supports - so if your local Docker installation is set up for Linux containers, Batect can work with Linux containers, and if your local Docker installation is set up for Windows containers, Batect can work with Windows containers. This is a limitation of Docker unfortunately.
This isn't something that is currently supported, and would add significant complexity to the codebase, so I'd prefer to avoid it unless there's significant demand for it. However, there's nothing stopping you from running different Batect tasks from the same project against different daemons that support different kinds of containers - you'd just need to tell Batect to use the right daemon, either with the |
Beta Was this translation helpful? Give feedback.
Batect is limited to whatever the Docker daemon it is talking to supports - so if your local Docker installation is set up for Linux containers, Batect can work with Linux containers, and if your local Docker installation is set up for Windows containers, Batect can work with Windows containers. This is a limitation of Docker unfortunately.
This isn't something that is currently supported, and would add significant complexity to the codebase, so I'd prefer to avoid it unless there's signif…