>  Q&A  >  본문

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

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 所有下载和镜像都报废的样子,累...

淡淡烟草味淡淡烟草味2757일 전1446

모든 응답(1)나는 대답할 것이다

  • 滿天的星座

    滿天的星座2017-04-25 09:04:58

    docker run --name mysql -e MYSQL_ROOT_PASSWORD=密码 -d mysql

    회신하다
    0
  • 취소회신하다