Thread
#prefect-community
    Pedro Machado

    Pedro Machado

    1 year ago
    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.
    nicholas

    nicholas

    1 year ago
    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.
    Pedro Machado

    Pedro Machado

    1 year ago
    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.
    nicholas

    nicholas

    1 year ago
    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