docker - 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 。帮我解决这个问题。
解决方案
推荐阅读
- javascript - window.location.replace() - 无法按预期工作
- libcurl - 使用 Bazel 使用 SSL 密封构建 libcurl?
- symfony - 我们可以存储来自两个来源的 OneToMany 关系吗?
- flutter - 将一个值(年龄)从一个小部件传递给另一个
- haskell - 我的 sqrt 函数不会在 GHCi 中编译
- java - Java将字符串转换为数组“[1,2,3,4,5,5]”到[1,2,3,4,5,5]
- python - python 2.7:错误:root:找不到哈希 md5 的代码
- reactjs - 如何实现 create-react-app 的自动更新?
- c# - 如何在 C# windows 窗体中实现 APIKey v.1 身份验证?
- c# - 使用 NamedScope 扩展时如何让 Ninject 停用范围定义对象?