4 ms·
By looking at the code I can't seem to find a way of running the containers with options such as --net, --dns etc. Am I missing something or it's just not part
by ciokan 11y ago
By looking at the code I can't seem to find a way of running the containers with options such as --net, --dns etc. Am I missing something or it's just not part of the plan?
- vkjv 11y agoDoesn't look like it. It looks like it's just a thin wrapper the `docker` module, which is a wrapper around the Docker API. https://github.com/deepgram/sidomo/blob/7890cde8c5dbf17223110bf79a2b6894fcfd6d14/sidomo/sidomo.py#L43-L56 https://github.com/deepgram/sidomo/blob/7890cde8c5dbf1722311... It probably wouldn't be much effort to add an options object that is a direct pass-thru to the Docker API. That gives you the availability of all options and helps to future proof it. I'm not a Python developer, but I've had success doing exactly this in node with the `dockerode` module.