How to start cpm at startup

hello, i have deployed a private CPM and start it by executing this script:
docker run -e MINION_PRIVATE_LOCATION_KEY=[Redacted by New Relic] /tmp:/tmp:rw -v /var/run/docker.sock:/var/run/docker.sock:rw

My question is what is the best way to have the minion start on startup in linux?

Hey @klynch - there’s no guidance specific to the private minion on this, however the minion is just a standard docker container, so some generic guidance on starting containers at boot time can be helpful.

Docker suggests using something like upstart, or systemd to start up containers at boot time:

If you can get that to start up the Docker Daemon, then all containers with the correct restart policy (always) will boot up at system boot.

Thanks so much for the feedback. FYI, I found in the docker docs that i needed to enable docker service in systemctl and add the --restart always switch to my command line.

1 Like

Awesome! Glad that helped. :smiley: