docker build过程安装mysql, 到mysql密码设置部分卡死了,为何会这样?怎么办?

 jing2502857803 发布于 2022-10-25 10:43

Unpacking libklibc (2.0.4-8ubuntu1.16.04.2) ...
Selecting previously unselected package klibc-utils.
Preparing to unpack .../klibc-utils_2.0.4-8ubuntu1.16.04.2_amd64.deb ...
Adding 'persion of /usr/share/initramfs-tools/hooks/klibc to /usr/share/initramfs-tools/hooks/klibc^i-t by klibc-utils'
Unpacking klibc-utils (2.0.4-8ubuntu1.16.04.2) ...

While not mandatory, it is highly recommended that you set a password for the
MySQL administrative "root" user.

If this field is left blank, the password will not be changed.

New password for the MySQL "root" user: root

然后就卡死了,很久:(
Ctrl+C 所有下载和镜像都报废的样子,累...

1 个回答
  • docker run --name mysql -e MYSQL_ROOT_PASSWORD=密码 -d mysql

    2022-10-26 23:17 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有