Docker image for MySQL Client tool
4.9K
Docker recipe for running MySQL Client commands
The container creates the /etc/mysql/my.cnf configuration based on the
environment variables defined when starting the container. This
file is being used by all the commands run in the container.
The container can run in two different modes:
.sh, the container runs that command with the
provided arguments; note that the argument should point to a file that exists
in the container; otherwise the container runs in client modemysql command, resulting in running a single queryThe container can receive the following environment variables:
MYSQL_HOME: indicates the home directory where MySQL searches for the
my.cnf configuration fileMYSQL_USER: the user to run mysql commandsMYSQL_PASSWORD: the default password used when running mysql commands
my.cnf configuration fileMYSQL_HOST: the host of the MySQL server to connect toMYSQL_PORT: the port of the MySQL server to connect toMYSQL_DATABASE: the name of the default MySQL serverMYSQL_OPTIONS: extra MySQL options to be configured on the client side;
their format is key1 = value1\r\nkey2 = value2Content type
Image
Digest
sha256:8ca98113e…
Size
149.3 MB
Last updated
over 3 years ago
docker pull opensips/mysql-client