国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

docker-images - Dockerfile build install mysql的時(shí)候,彈出輸入root密碼之後,沒反應(yīng)?
僅有的幸福
僅有的幸福 2017-04-26 09:03:32
0
2
1083

Dockerfile build 執(zhí)行指令apt-get install mysql-server的時(shí)候,彈出輸入root密碼之後,輸入秘密,回車,沒反應(yīng)??!這怎麼回事?

Dockfile:

FROM ubuntu:latest
RUN apt-get -qq update
RUN apt-get install -qqy nginx mysql-server php-mcrypt
僅有的幸福
僅有的幸福

全部回覆(2)
習(xí)慣沉默

mysql是不可以直接這麼安裝的。

應(yīng)該參考下面mysql官方鏡像的做法:

ENV MYSQL_VERSION 8.0.0-dmr-1debian8

RUN echo "deb http://repo.mysql.com/apt/debian/ jessie mysql-${MYSQL_MAJOR}" > /etc/apt/sources.list.d/mysql.list

# the "/var/lib/mysql" stuff here is because the mysql-server postinst doesn't have an explicit way to disable the mysql_install_db codepath besides having a database already "configured" (ie, stuff in /var/lib/mysql/mysql)
# also, we set debconf keys to make APT a little quieter
RUN { \
        echo mysql-community-server mysql-community-server/data-dir select ''; \
        echo mysql-community-server mysql-community-server/root-pass password ''; \
        echo mysql-community-server mysql-community-server/re-root-pass password ''; \
        echo mysql-community-server mysql-community-server/remove-test-db select false; \
    } | debconf-set-selections \
    && apt-get update && apt-get install -y mysql-server="${MYSQL_VERSION}"
漂亮男人

有人知道嗎?遇過嗎?

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板