Given that I already have only one agent running (this is for testing), should I:
Kill the running Nomad agent: sudo kill ${NOMAD_AGENT_PID}
Restart the Nomad agent: sudo nomad agent -dev-connect -config/etc/nomad/server.conf -config=nomad_pointing_to_external_docker_daemon.hcl
(I will actually redo the block hashiqube/nomad.sh at master · servian/hashiqube · GitHub with only the above changed config arg)
where nomad_pointing_to_external_docker_daemon.hcl contains:
You can pass in more than one configuration file using the -config flag and they are applied in the order you supply them. If the -config flag points to a directory, they are applied in dictionary order.
I use this technique for Nomad host_volumes, plugin "raw_exec", & my vault stanza configurations.
I use a single -config pointing at the directory. Then I can comment them out of my configuration during tests by renaming them from .hcl to .hcl.off
Hopefully this gives you some ideas. Also, given the connection you linked, you shouldn’t need the -dev-connect flag. The -dev-connect flag exists to override the -dev agent’s default behavior of binding to localhost.