Docker run mysql-xwiki error

Hi!

I’ve got the following error when trying to install new xwiki deployment on a new clean virtual server.

docker run --net=xwiki-nw --name mysql-xwiki -v /opt/xwiki/mysql:/var/lib/mysql -v /opt/xwiki/mysql-init:/docker-entrypoint-initdb.d -e MYSQL_ROOT_PASSWORD=xwiki -e MYSQL_USER=xwiki -e MYSQL_PASSWORD=xwiki -e MYSQL_DATABASE=xwiki -d mysql:5.7 --character-set-server=utf8 --collation-server=utf8_bin --explicit-defaults-for-timestamp=1
998bcc0bd681c4e7b5552733bcf9273adbc5e191a412efdfa8e06b0f7278fb6d

docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused “exec: “–character-set-server=utf8”: executable file not found in $PATH”: unknown.

Server: Docker Engine - Community
Engine:
Version: 19.03.6
API version: 1.40 (minimum version 1.12)
Go version: go1.12.16
Git commit: 369ce74a3c

Please help.

Regards, Alex.

Hi Alex, you should try to get help either with the docker community or the MySQL community because the mysql image is completely independent from xwiki. Not sure how we could help you here.

Did you google about your problem?

Hi!

I thought that MySQL container is a part of xwiki solution because I just following xwiki installation guide.
Now I see that it’s universal MySQL container.
Sorry for inconvinience.
I googled it quite a while, but didn’t find anything helpful.

Regards, Alex

postgres container works just fine