首页 > 解决方案 > dockerfile中的phpmyadmin错误如何解决?

问题描述

现在我正在创建一个图像以在 docker 中运行 cms。docker文件代码写下来:

From ubuntu:latest


RUN  apt-get update
ENV TZ=Asia/Kolkata
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get install -y  apache2
Run apt-get install -y php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath
RUN apt-get install -y mysql-server
RUN service mysql start
RUN apt-get install -y phpmyadmin
RUN apt-get install -y unzip
RUN apt-get install -y wget
RUN apt-get install -y nano
RUN wget https://www.exploit-db.com/apps/312e42aeda0b0b163066b4ff401cae6d-bloofoxCMS_0.3.5.zip
RUN unzip 312e42aeda0b0b163066b4ff401cae6d-bloofoxCMS_0.3.5.zip
RUN mv bloofoxCMS_0.3.5 /var/www/html/
RUN chmod 777 /var/www/html/bloofoxCMS_0.3.5/media/files
RUN chmod 777 /var/www/html/bloofoxCMS_0.3.5/media/images
RUN chmod 777 /var/www/html/bloofoxCMS_0.3.5/media/txt
RUN chmod 777 /var/www/html/bloofoxCMS_0.3.5/system


 

CMD [ "echo' , "Image crated] 

但是当 bulid 启动并且 phpmyadmin 开始下载时,它会卡住。当我输入 yes 时,它会询问是否连接到 db common 。帮我解决这个问题。

标签: dockerdockerfile

解决方案


推荐阅读