Public Repository

Last pushed: 7 months ago
Short Description
Short description is empty for this repo.
Full Description

if [ ! -d "$(pwd)/mysql/conf.d" ]; then
mkdir -p "$(pwd)/mysql/conf.d"
fi

if [ ! -d "$(pwd)/mysql/data" ]; then
mkdir -p "$(pwd)/mysql/data"
fi

if [ ! -d "$(pwd)/mysql/log" ]; then
mkdir -p "$(pwd)/mysql/log"
fi

sudo docker run -d \
--name mysql \
--restart=always \
-v $(pwd)/mysql/conf.d:/etc/mysql/conf.d \
-v $(pwd)/mysql/data:/var/lib/mysql \
-v $(pwd)/mysql/log:/var/log/mysql \
--publish 3306:3306 \
-e MYSQL_ROOT_PASSWORD=password \
huas/mysql

Docker Pull Command
Owner
huas