Docker container in Kodi – manual



I’ve created python script which uses some dependencies, not available in Kodi/Libreelec.
As far as I know it possible to run it inside Kodi/Libreelec using docker container. But… I completely don’t know how to do it. Are somewhere any instructions for that? Including basics of container creation if possible?