Discourse on CoreOS won't autostart after reboot


Hi there,

I just installed the latest discourse_docker on the latest CoreOS 509.1.0. Setup was really easy and smooth, and everything worked out of the box. The only issue I’m facing now is that Discourse won’t autostart when rebooting the server. Any tips as to why? Or is it this issue?

Thanks for the help!

(Sam Saffron) #2

What version of Docker is in that channel?


Thanks for the reply Sam. Docker is at 1.3.2.

I just created a systemd unit that runs “/var/discourse/launcher start app”, but I wondered if that’s the appropriate way of doing it or not.

(Sam Saffron) #4

well we should have a restart policy in place, so it should no be needed.


cd /var/discourse
git pull
./launcher rebuild app

Does it come back ?


Does it come back ?


(Sam Saffron) #6

Sounds really weird … we have a restart policy in place Announcing Docker 1.2.0 - Docker Blog did coreos do something to disable it?

Perhaps the docker daemon is only launched manually somehow


I’m not terribly familiar with Docker, how can I check the restart policies?


The Docker daemon does get launched automatically, because I don’t have to manually start it before launching Discourse.

(Sam Saffron) #9

coreos has some fancy that it only starts services on demand… afaik

(Ernest Lee) #10

Can you post your systemd script? My script hit systemd cgroup scope somehow gets left behind not allowing containers to start · Issue #7015 · moby/moby · GitHub .




ExecStart=/var/discourse/launcher start app