MySQL Client based on Alpine Linux
1M+

docker pull ellerbrock/alpine-mysql-client
Base image is Alpine Linux which is a lightweight Distribution with a small surface area for security concerns, but with enough functionality for development and interactive debugging.
To prevent zombie reaping i run dumb-init as PID 1 which forwards signals to all processes running in the container.
To increase security the container runs as a unprivileged User.
In case you need to run for some reason stuff as root you can do this via docker run -it -u root ellerbrock/alpine-mysql-client ....
These Settings are optional, if not set the default values will be used.
# Optional Configuration Parameter
ARG SYSTEM_TZ
ARG SERVICE_USER
ARG SERVICE_HOME
# Default Settings
ENV SYSTEM_TZ ${SYSTEM_TZ:-Europe/Berlin}
ENV SERVICE_USER ${SERVICE_USER:-mysql}
ENV SERVICE_HOME ${SERVICE_HOME:-/home/${SERVICE_USER}}
docker build \
--build-arg SYSTEM_TZ=Europe/Berlin \
-t ellerbrock/alpine-mysql-client:latest .
Documentation: https://docs.docker.com/engine/reference/builder/#/arg
args:
SYSTEM_TZ: Europe/Berlin
...
Documentation: https://docs.docker.com/compose/compose-file/#/args
Get the latest News about Web Development, Open Source, Tooling, Server & Security
Content type
Image
Digest
Size
10.8 MB
Last updated
almost 7 years ago
docker pull ellerbrock/alpine-mysql-client