https://prefect.io logo
p

Pedro Machado

10/09/2020, 3:28 PM
Hi. I am trying to get the docker agent running on an ubuntu machine that has been somewhat restricted by the administrator. I was trying to run
prefect agent start docker
(passing several env variables) with the recipe created by
prefect agent install local
but I get a permission denied error and the agent never starts. I am able to start the agent without
supervisord
and it works fine. Any ideas? Logs in thread.
n

nicholas

10/09/2020, 3:41 PM
Hi @Pedro Machado - it looks like your
supervisord
process isn't permissioned to interface with the docker daemon. Have you tried
nohup
instead to put the agent in the background? Not sure this'll work but it's worth a shot.
p

Pedro Machado

10/09/2020, 3:46 PM
Let me try that. I started it in a
tmux
session and it's still running but I'd like to find a way to set it up so that it will be restarted automatically if it dies for some reason. Any ideas on what would need to happen to give
supervisord
permission to use docker? I got
sudo
access so may be able to fix it.
n

nicholas

10/09/2020, 3:47 PM
To be honest I'm not sure what
supervisord
is dong under the hood that would cause you to lose permissions; if you're able to elevate the
supervisord
call that may fix it