原文链接:Docker创建MySQL集装箱 这样做的目的是创建一个MySQL的image,出来的容器里自己主动启动MySQL服务接受外部连接 步骤: 1. 首先创建一个文件夹并在文件夹下创建一个Dockerfile,文件内容例如以下 FROM centos:centos6 MAINTAINER Fanbin Kong "kongxx@hotmail.com" RUN yum install -y mysql-server mysql RUN /etc/init.d/mysqld sta…
docker run 命令 镜像(image):An image is a filesystem and parameters to use at runtime. It doesn't have state and never changes 容器(container): A container is a running instance of an image. 简言之,容器是镜像的实例. 运行命令的时候,执行如下步骤: 1 检查是否有名叫 hello-world 软件镜像(image) 2…