docker-compose:服务器请求客户端未知的身份验证方法 [英] docker-compose : The server requested authentication method unknown to the client

查看:179
本文介绍了docker-compose:服务器请求客户端未知的身份验证方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个yml文件,用于在docker中配置MySQL:

I have this yml file for configuration of MySQL in docker:

# Use root/example as user/password credentials
version: '3.1'

services:

  db:
    image: mysql
    restart: always
    environment:
       MYSQL_ROOT_PASSWORD: 'pass'
       MYSQL_DATABASE: 'db'
       MYSQL_USER: 'user'
       MYSQL_PASSWORD: 'pass'

  adminer:
    image: adminer
    restart: always
    ports:
      - 8888:8080

然后使用以下命令从yml所在的同一目录中启动容器:

And I start the container using following command from the same directory where yml is located:

docker-compose -f stack.yml up

docker-compose -f stack.yml up

然后我收到此错误:

推荐答案

这对我有用:

image: mysql:5.7

这篇关于docker-compose:服务器请求客户端未知的身份验证方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆