A mysql-client docker image for k8s deployment.
docker run --rm -it --name mysql-client andreswebs/mysql-client -u <user> -p<password> -h <host_ip_address> -P <port> -D <database>
(Notice that there is no space between -p and the password string.)
To get a shell inside the running container:
docker exec -it mysql-client /bin/sh
You need a working k8s cluster and kubectl configured.
kubectl apply -f mysql-client.yml
kubectl attach --namespace=mysql-client -ti mysql-client
mysql -u <user> -p<password> -h <host_ip_address> -P <port> -D <database>
(Notice that there is no space between -p and the password string.)
Andre Silva
This project is licensed under the Unlicense.
Content type
Image
Digest
sha256:d2efa9d12…
Size
22.5 MB
Last updated
almost 3 years ago
docker pull andreswebs/mysql-client