Step 1: install Dockerhttps://blog.kimconnect.com/linux-installing-docker-community-edition-on-centos-8/ Step 2: install networkThere are two modes: bridge or 802.1q trunk…
# Set VariablessqlContainer="mysql-server"userName=bruceleepassword=chucknorrisdatabaseName=kimconnect# Run mysql inside containerdocker exec -it $sqlContainer mysql -u$userName --password='$password'show databases;# Execute mysqldumpdocker exec $sqlContainer /usr/bin/mysqldump…