以下Dockerfile為何build不了?問題出在哪裡?
天蓬老师
天蓬老师 2017-04-25 09:04:30
0
2
1019

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

g++ tmux apt-utils my-client mysql-serverclient mysql-serverclient

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

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

全部回覆(2)
迷茫

這個需要互動的,它一直在等待輸入密碼,所以就卡住了。
你可以參考這篇文章:http://blog.csdn.net/fickyou/...

洪涛

build的時候你不能互動了。 。如果你需要mysql你可以直接下載mysql的鏡像,如果你還需要加東西,你可以先用-it開一個容器,然後安裝,退出容器commit那個容器,然後做出鏡像即可

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板