Using Docker Python SDK to start a Redis container
- Docker installed on your machine
- Python and pip installed
Use requirements.txt for PyPI installation
pip3 install -r requirements.txt
Setting up PostgreSQL through YAML
image_name: redis:7.2.4
container_name: redis_db
connection_info:
password: '*******'
host: '127.0.0.1'
port: 9527
from launcher import pull_image,start,stop
Will automatically pull the Docker image, start the container, and then stop the container
python3 launcher.py
This project is licensed under the MIT License - see the LICENSE.md file for details
Inspiration, code snippets, etc.