So now docker is taking on the work of what systemd and other daemon-managers are supposed to solve? Looking forward to docker run --restart on-failure ubuntu /bin/bash exit -1
When you include a --restart "feature" you know for sure you have don goofed.
But anyway, the rest of the stuff looks like pure candy. Great job!