I created a docker container. Now I want to change entrypoint.
For this I commited my container to new image. With docker-compose I want to create a new container with new entrypoint:
command: sh -c /start.sh
Command is executed successfully and container is created. But container is also stopped immediately.
My start script is as follows:
service apache2 start
If I have a look in container logs it says that apache is started. No error wy conatiner is stopped.
If I use this container with entrypoint /bin/bash and start apache manually everything works fine.
Do you have any ideas?