Last active
January 7, 2023 15:48
-
-
Save nyx-rattapoom/1cdae2f2bb5d0b90ca403986565c69ab to your computer and use it in GitHub Desktop.
docker start after disk mounted
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
when mount disk on /mnt | |
let get service name from command `sudo systemctl | grep mnt` | |
sudo systemctl edit docker.service | |
``` | |
[Unit] | |
Requires=mnt-external.mount mnt-storage.mount | |
After=mnt-external.mount mnt-storage.mount | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for more information: https://docs.docker.com/config/daemon/systemd/