Last active
August 29, 2015 13:59
-
-
Save jameskyle/10939868 to your computer and use it in GitHub Desktop.
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
[Unit] | |
Description=Ubuntu Latest | |
After=etcd.service | |
After=docker.service | |
[Service] | |
ExecStart=/usr/bin/docker run --name ubuntu-latest ubuntu /bin/bash -c "while true; do sleep 60; done" | |
ExecStop=/usr/bin/docker stop ubuntu-latest | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ubuntu.service - Ubuntu Latest
Loaded: loaded (/run/systemd/system/ubuntu.service; enabled-runtime)
Active: failed (Result: exit-code) since Thu 2014-04-17 15:59:05 UTC; 23s ago
Process: 4705 ExecStop=/usr/bin/docker stop ubuntu-latest (code=exited, status=0/SUCCESS)
Process: 4649 ExecStart=/usr/bin/docker run --name ubuntu-latest ubuntu /bin/bash -c while true; do sleep 60; done (code=exited, status=1/FAILURE)
Main PID: 4649 (code=exited, status=1/FAILURE)
Apr 17 15:59:04 cl1.dlstx.met systemd[1]: Starting Ubuntu Latest...
Apr 17 15:59:04 cl1.dlstx.met systemd[1]: Started Ubuntu Latest.
Apr 17 15:59:05 cl1.dlstx.met docker[4649]: 2014/04/17 15:59:05 Error: Conflict, The name ubuntu-latest is already assigned to 98d7256b33c5. You have to delete (or rename) that container to be able to assign ubuntu-latest to a container again.
Apr 17 15:59:05 cl1.dlstx.met systemd[1]: ubuntu.service: main process exited, code=exited, status=1/FAILURE
Apr 17 15:59:05 cl1.dlstx.met docker[4705]: ubuntu-latest
Apr 17 15:59:05 cl1.dlstx.met systemd[1]: Unit ubuntu.service entered failed state.