Within the Unit section we provide the service with a Description. And we define any required services through Requires, in this case we only require the docker service. And we specify that our container should be started After the docker service.

Now within the Service section we set the service to always Restart, note that with docker 1.2 this can be also defined within the container itself. And we specify the commands needed to Start and Stop our container.

And finally within the Install section we define how to enabled our service. Here we just set to be enabled by our default setup.