Test container connectivity
101
Create a batch file from the code below. This will start an container of mysql server and another for mysql client (windows) and create a database and table from the client, on the server.
@echo on docker run --name mysql-win-server -d -it -p 3306:3306 michelkocher/nanoserver-mysql FOR /F "tokens=*" %%g IN ('docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" mysql-win-server') do (SET IP_ADDRESS=%%g) docker run -e IP_ADDRESS=%IP_ADDRESS% shahzaibalikhan/mysql-win-client pause
Content type
Image
Digest
Size
530.7 MB
Last updated
over 8 years ago
docker pull shahzaibalikhan/mysql-win-client