We need two things :
- Auto restart the docker service when host is starting up
- Auto restart the containers when host is starting up
For 1, simply run the command systemctl enable docker.service
For 2, we will add a new file into /etc/systemd/system/
Where the restart_keep_data.sh is located at /root/Cytomine_src/Cytomine-bootstrap-1.0/. Don't forget to adapt the path to your installation!
Then, you can test it by running