Docker daemon crashes randomly

I have issue in docker daemon crashes continuously after adding entry point while docker image build

I added below service in entry point.

ENTRYPOINT service nginx restart && service mysql restart && service enable restart && bash

Its worked, but randomly crashes the docker daemon.

OS: Fedora 23
Docker version 1.12.1, build 23cf638

Suggest me, How to fix this.

You probably don’t want so many things in one container.

ENTRYPOINT should be something simple like ENTRYPOINT ["mysqld"].

See: https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#/each-container-should-have-only-one-concern

At any rate, it’s impossible to say what crashed the Docker daemon without Docker daemon log (probably sudo journalctl -u docker)