以下Dockerfile为何build不了?问题出在哪里?
天蓬老师
天蓬老师 2017-04-25 09:04:30
0
2
944

FROM ubuntu
LABEL Description="test" Vender="test" Version="1.0"
RUN apt-get update && apt-get install -y git gcc g++ tmux apt-utils mysql-client mysql-server

docker build -t test/test .

卡在下面这里了,等多久没没用,为何会这样呢?
上面Dockerfile问题出在哪里呢?

Selecting previously unselected package psmisc.
Preparing to unpack .../psmisc_22.21-2.1build1_amd64.deb ...
Unpacking psmisc (22.21-2.1build1) ...
Processing triggers for systemd (229-4ubuntu6) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up mysql-common (5.7.16-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-5.7.
(Reading database ... 10999 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.7_5.7.16-0ubuntu0.16.04.1_amd64.deb ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Configuring mysql-server-5.7
----------------------------

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: 
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

répondre à tous(2)
迷茫

Cela nécessite une interaction. Il attend que le mot de passe soit saisi, il est donc bloqué.
Vous pouvez vous référer à cet article : http://blog.csdn.net/fickyou/...

洪涛

Vous ne pouvez plus interagir pendant la construction. . Si vous avez besoin de MySQL, vous pouvez télécharger directement l'image MySQL. Si vous avez encore besoin d'ajouter quelque chose, vous pouvez d'abord ouvrir un conteneur avec -it, puis l'installer, quitter le conteneur, valider le conteneur, puis créer l'image

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!