Docker - 具有多个图像的容器 [英] Docker - container with multiple images

查看:145
本文介绍了Docker - 具有多个图像的容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个包含多个图像的Dockerfile,以便在一个容器中运行。

I wanted to make a Dockerfile with multiple images to run in one container.

最好的方法是什么?下面列出了我想在一个容器中运行的内容。制作包含所有这些内容的Dockerfile我没有任何好运。

What is the best method to go about this? Below is a list of what I wanted to run in a single container. I have not have any luck with making a Dockerfile with all of these included.


  • MySQL服务器

  • RabbitMQ

  • Java8

  • Node.js

  • Xvfb

  • Firefox

  • Chrome

  • MySQL Server
  • RabbitMQ
  • Java8
  • Node.js
  • Xvfb
  • Firefox
  • Chrome

这是我到目前为止,我可以得到一些提示

This is what I have so far, can I get a few tips

FROM stackbrew/ubuntu:12.04
MAINTAINER 
# Update the repository sources list #RUN apt-get update  
# My SQL Server ############### 
RUN apt-get 
update -qq && apt-get 
install -y mysql-server-5.5 
ADD my.cnf /etc/mysql/conf.d/my.cnf 
RUN chmod 664 /etc/mysql/conf.d/my.cnf
ADD run /usr/local/bin/run 
RUN chmod +x /usr/local/bin/run  V
OLUME ["/var/lib/mysql"] 
EXPOSE 3306
CMD ["/usr/local/bin/run"] 


推荐答案

您正在寻找的功能是 Docker Compose

这篇关于Docker - 具有多个图像的容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆