apache - docker commit后无法启动服务
阿神
阿神 2017-04-22 08:55:50
0
2
675

docker run -d -p 80:80 -p 3306:3306 -v /home/www:/app -v /home/mysql:/var/lib/mysql tutum/lamp
可以启动服务

docker run -i -t tutum/lamp /bin/bash
docker commit {id} test/lamp

docker run -d -p 80:80 -p 3306:3306 -v /home/www:/app -v /home/mysql:/var/lib/mysql free/lamp
无法启动服务

我的目标是修改tutum/lamp的配置, 可以修改好后commit之后无法启动web服务和mysql服务

阿神
阿神

闭关修行中......

reply all(2)
洪涛

Already know the reason, the modified status is in the shell. And the shell does not start any services.
The correct way is to use Dockerfile to build a new image

巴扎黑

There is something wrong with the configuration. Try changing it bit by bit to see which step is wrong.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template