Docker
悟空宇
I SEE YOU
展开
-
docker报错 x509: certificate has expired or is not yet valid
这种报错是由于系统时间与实际不一致所导致的此时可通过date命令确定本地时间是否正确。若本地时间错误,可以尝试使用ntp进行系统时间同步ntpdate cn.pool.ntp.org如果提示找不到ntp命令,可以先通过如下命令进行安装(若有提示输入y即可)yum install ntp安装完成后再次执行更新系统时间即可...原创 2020-01-01 21:12:43 · 827 阅读 · 0 评论 -
连接Docker中mysql 出现:Unable to load authentication plugin 'caching_sha2_password'.
在IDEA中连接远程或是虚拟机中Docker的mysql 出现错误如下:java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_password’.5.7版本是:default_authentication_plugin=mysql_native_password8.x版本就是:default_auth...原创 2019-01-17 16:28:28 · 789 阅读 · 0 评论 -
Linux中对数据库用户权限的基本操作
本篇基于Linux下操作:(Win中适用)1.新建用户//登录MYSQLroot@2eb132f9b1b2:/# mysql -u root -p并输入密码//创建用户mysql> insert into mysql.user(Host,User,Password) values("localhost","xiaoming ",password("1234"));//刷新系...原创 2019-01-17 17:14:30 · 3053 阅读 · 0 评论 -
Docker启动报错:SELinux is not supported with the overlay2 graph driver on
Docker在Linux中启动时无法正常启动:(如下)[root@localhost ~]#systemctl start docker通过下面的命令查询详情,可以看出是引擎启动的问题[root@localhost ~]#systemctl status docker.service原因是:此Linux的内核中的SELinux不支持 overlay2 graph driver ,这...原创 2019-01-15 17:05:54 · 1025 阅读 · 0 评论 -
利用阿里云给Docker下载镜像提速
平常在docker中pull镜像由于资源是在国外,所以速度较缓慢,可以通过配置各种云的容器镜像加速来解决这个问题,这里只介绍阿里的容器镜像服务配置:1.编辑文件路径如下:[root@localhost ~]# vi /etc/docker/daemon.json2.添加如下代码(也可以自己注册阿里云并从自己的“容器镜像服务”中获取){"registry-mirrors":["http...原创 2019-01-16 12:31:03 · 642 阅读 · 0 评论 -
本地远程连接Docker中的MySQL报错的解决办法(1251)
错误如下:原因:mysql 8.0 默认使用 caching_sha2_password 身份验证机制;客户端不支持新的加密方式解决方案:修改用户(root)的加密方式1.进入mysql容器内部,在docker中输入docker exec -it mysql02 bash2.登录mysqlmysql -u root -p3.设置用户配置项(1)查看用户信息select h...原创 2019-01-16 17:57:09 · 1983 阅读 · 0 评论