diff --git a/Docker_Config_UoD_ESS.md b/Docker_Config_UoD_ESS.md index 11c2eac2..096fcbcf 100644 --- a/Docker_Config_UoD_ESS.md +++ b/Docker_Config_UoD_ESS.md @@ -55,3 +55,19 @@ Instructions * Start the docker service systemctl start docker + + +Restart Issue: +------------- + +The restart issue on the VM: the machine restarts, but the containers do not restart with it. + +This has been investigated on the merge-ci host (**ome-devsp-ap1**), it occurred because the Docker image disk (**docker-storage_ap1.img**) was not properly mounted to **/var/lib/docker-xfs-ap1**. To resolve this, The **/etc/fstab** file has been updated so the mount depends on the scratch folder being available and retries every 30 seconds if it fails, i.e.: + + /uod/idr/scratch/docker-storage_ap1.img /var/lib/docker-xfs-ap1 xfs loop,defaults,x-systemd.requires-mounts-for=/uod/idr/scratch,,x-systemd.mount-timeout=30 0 0 + +The Docker service file has been updated so it relies on the mounted image disk. Specifically, the following clause has been appended to the end of both the **After** and **Requires** lines within the [Unit] section: + + var-lib-docker\x2dxfs\x2dap1.mount + +Following these adjustments, a system reboot successfully brought back all Docker containers. The identical fix has now been deployed to the active merge-ci host (**idr3-slot2**).