Practical examples
Python external program using docker MySQL
Create MySQL container
Create container with config
docker create -p3306:3306 --name myese -e MYSQL_ROOT_PASSWORD=toor mysqlValidate container creation
docker ps -a
Start container

Create a simple Python program to interact with MySQL
Install MySQL package
Connection to MySQL
List databases

Create a database

Dockerize an external program
Connection between dockers containers
Last updated