Volumes error
Closed this issue · 0 comments
rodrigopedra commented
When running with a single MySQL docker instance, the CLI outputs this message repeatedly:
Unexpected error refreshing volumes: not enough values to unpack (expected 3, got 1)
My MySQL docker instance does not have any volumes attached to it, I map all the needed directories to a dedicated hard drive, like so:
docker run --name mysql \
--env MYSQL_ROOT_PASSWORD=123456 \
--publish 3306:3306 \
--mount type=bind,src=/mnt/mysql/my.cnf,dst=/etc/my.cnf \
--mount type=bind,src=/mnt/mysql/data,dst=/var/lib/mysql \
--mount type=bind,src=/mnt/mysql/files,dst=/var/lib/mysql-files \
--mount type=bind,src=/mnt/mysql/log,dst=/var/log/mysql \
--mount type=bind,src=/var/run/mysql,dst=/var/run/mysql \
--mount type=bind,src=/var/tmp,dst=/var/tmp \
--restart unless-stopped \
--detach \
mysql:8.0.39
For reference, this is the output of docker volume ls
:
$ docker volume ls
DRIVER VOLUME NAME