Created
June 6, 2018 11:06
-
-
Save atton/2d181fa02fa597c6a8bea465a1af0748 to your computer and use it in GitHub Desktop.
systemd unit file for https://attonblog.blogspot.com/2018/07/control-docker-registry-using-systemd.html
This file contains hidden or 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
[Unit] | |
Description=Docker Registry | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/docker restart registry | |
ExecStop=-/usr/bin/docker stop registry | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment