<@ULVA73B9P> How to set docker user in prefect 3 d...
# ask-marvin
m
@Marvin How to set docker user in prefect 3 dockerized deployment? "user" does nothing cam_flow.deploy( name="cccg-deployment", work_pool_name="cccg-pool", image=image, push=False, build=False, job_variables={ "entrypoint": "", "user": "uzer", }, ) (
m
It seems there isn't a specific example or document in the Prefect 3.x documentation or GitHub issues addressing a known method to set the Docker user during deployment. Your attempt to pass
user
within
job_variables
suggests you're trying to set environment variables to configure the Docker image. While your approach seems logical, it's possible that Prefect's API for Dockerized deployments may not support direct user configuration through
job_variables
. Here's a general direction you might consider: - Prefect's Dockerized deployment is often dependent on the way Docker itself handles users. You might need to ensure your Dockerfile or Docker image setup is configured properly to accept user changes and switches appropriately upon starting. - Alternatively, you could try searching for support or adding your issue with more details in the Prefect GitHub repository or community forums to get feedback or workarounds from Prefect developers or users. For accurate setup, ensure your Docker image has correct entry points or commands supporting user switches and investigate if the Docker container runtime can inherit users from environment or command line inside Prefect's supported configurations. For more information on deploying Prefect using Docker, you can look into the following resources: 1. Prefect Docker Deployment Example: Docker Deployment 2. GitHub Prefect Repository for issues and discussions: Prefect GitHub If you're stuck, it might be useful to reach out to Prefect's support or community for more personalized advice.