搜尋

首頁  >  問答  >  主體

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-800Preparing to unpack .../klibc-utils_2.0.418.001.
Adding 'persion of /usr/share/initramfs-tools/hooks/klibc to /usr/share/initramfs-tools/hooks/klibc^i-t by klibc-utils'
Uning klibc-utilspack (2.014-886. .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 所有下載和鏡像都報廢的樣子,累...

淡淡烟草味淡淡烟草味2774 天前1460

全部回覆(1)我來回復

  • 滿天的星座

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

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

    回覆
    0
  • 取消回覆