Advertisement
HorselessName

Serviço para Desmontar o Docker

Jan 10th, 2024
1,410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. [Unit]
  2. Description=Clean up Docker volumes and processes
  3. DefaultDependencies=no
  4. Before=shutdown.target reboot.target
  5.  
  6. [Service]
  7. Type=oneshot
  8. ExecStart=/bin/true
  9. ExecStop=/bin/sh /var/lock/subsys/umountdocker stop
  10. RemainAfterExit=yes
  11.  
  12. [Install]
  13. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement