Created
March 5, 2014 20:41
-
-
Save AndrewVos/9376132 to your computer and use it in GitHub Desktop.
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 | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
TimeoutSec=5min | |
ExecStart=/usr/bin/docker run --name docker-registry --rm -p 5000:5000 -v /media/state/registry:/tmp/registry samalba/docker-registry | |
ExecStop=-/usr/bin/docker stop docker-registry | |
ExecStopPost=-/usr/bin/docker rm docker-registry | |
ExecStopPost=/bin/sh -c "rm -rf /home/core/docker-registry" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment