The service cannot be started after docker commit

  docker, question

docker run -d -p 80:80 -p 3306:3306 -v /home/www:/app -v /home/mysql:/var/lib/mysql tutum/lamp
The service can be started

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
Unable to start service

My goal is to modify the configuration of tutum/lamp so that the web service and mysql service cannot be started after commit is modified.

I already know the reason. The modified state is in the shell. The shell does not start any services.
The correct way is to use Dockerfile to build a new image.