Closed sdhouib closed 6 years ago
figured out what was wrong the wirecloud container. The issue was that the apache server could not restart since it was keepin in memory the pid of the last running process. So I modified the docker entrypoint file to add this line: rm -f /var/run/apache2/apache2.pid as shown below:
/usr/sbin/apache2ctl graceful-stop rm -f /var/run/apache2/apache2.pid exec /usr/sbin/apache2ctl -D FOREGROUND
Could you please modify the docker-entrypoint.sh accordingly ? Thanks
Hi @sdhouib, thank you very much, I'm integrating your changes.
Changes merged. New version of the images are in their way (see the build queue for more details).
Thanks!
After installing wirecloud through this command :
$ docker run --name some-wirecloud -d -p 80:80 fiware/wirecloud:latest
Wirecloud is running without any problem. But when I reboot my computer and restart the docker container of wirecloud through this command: $ docker restart some-wirecloud the docker container exits just after restarting :
$ docker container ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9c5ade363d3f fiware/ngsiproxy "/bin/sh -c ngsi-p..." 3 days ago Up 2 days 3000/tcp beincpps-ngsiproxy 61c5dedd1bc7 fiware/wirecloud:latest "/docker-entrypoin..." 3 days ago Exited (0) Less than a second ago some-wirecloud
What is the best way to manage restarting the docker container after rebooting the machine ?