Docker with MySQL

Running Mysql under Docker appears: mbind: Operation not permitted

 //docker logs --tail="100" mysql-server-5.2.6mbind: Operation not permittedmbind: Operation not permittedmbind: Operation not permittedmbind: Operation not permittedmbind: Operation not permittedmbind: Operation not permittedmbind: Operation not permittedmbind: Operation not permittedmbind: Operation not permitted

reason

Ignore docker’s security verification in docker-compose.yml,

 // 解决docker容器中的mysql安全认证问题security_opt: - seccomp:unconfined
 version: '3.7' services: mysql: image: mysql container_name: mysql # docker安全验证security_opt: - seccomp:unconfined ports: - 3306:3306

This article is reprinted from https://www.wujingquan.com/posts/ea4388fd.html
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment