Control and monitor your Docker containers with Python

<p>Use Python to control your docker containers! Here is a walkthrough how to get started. It is based on a test of three popular packages for handling tabular data.</p> <p>Git Repo:&nbsp;<a href="https://github.com/martinkarlssonio/polars-pandas-spark" rel="noopener ugc nofollow" target="_blank">https://github.com/martinkarlssonio/polars-pandas-spark</a></p> <p>If you would like to read on the data aspect of this test there&#39;s a separate story for that!<br /> <a href="https://medium.com/@martinkarlsson.io/pandas-spark-and-polars-when-to-use-which-f4e85d909c6f" rel="noopener">medium.com/@martinkarlsson.io/pandas-spark-and-polars-when-to-use-which-f4e85d909c6f</a></p> <h1>Walk through of the code</h1> <p>Below image illustrates the overall idea with the code. The main.py code build image and starts, controls and monitors 12 Docker Containers.</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:630/1*m-CVzB-vGmg3ZwohOWc8vQ.png" style="height:393px; width:700px" /></p> <h1>Control your images and containers</h1> <p>The star in this solution is the Docker Python package. In a requirements.txt (installed with pip) we specify the docker package.</p> <p><a href="https://medium.com/@martinkarlsson.io/control-and-monitor-your-docker-containers-with-python-7a3bdc4b88fa">Read More</a></p>
Tags: Python Monitor