Jon,
thanks for the article i was looking for something like this a long time ago. I’m newbie but I have done some changes to your setup. The changes are the next ones:
– For the ”START PROGRAM = “/usr/bin/docker start “” I add the user and group to start the docker container so it look like:
START PROGRAM = “/usr/bin/docker start ” as uid “” and gid “”
to choose the correct user to restart the container, we don’t want root to run that container.
– In your the test script I was getting and error (”unable to create context store: $HOME is not defined”), so i also tell which user should do the test so it looks like
”su – -c ‘docker top “‘””.

I think what i have done is correct, what do you think?