John T
08/06/2021, 5:50 AMJohn T
08/06/2021, 5:52 AMJohn T
08/06/2021, 5:55 AMnicholas
prefect agent start docker --show-flow-logs
command as your entrypoint instead of calling your script.John T
08/06/2021, 6:09 AMJohn T
08/06/2021, 6:09 AMdocker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
John T
08/06/2021, 6:09 AMJohn T
08/06/2021, 6:10 AMJohn T
08/06/2021, 6:10 AMJohn T
08/06/2021, 6:10 AM--show-flow-logs
but no luckJohn T
08/06/2021, 6:13 AMprefect agent docker start --show-flow-logs
works without an issue when running it straight from my terminal, but when I have that as the entrypoint
, it fails and I get said tracebackKevin Kho
John T
08/06/2021, 2:38 PMZanie
No such file or directory
error is indicating that the Docker API socket is not availableZanie
John T
08/06/2021, 5:09 PMZanie
--privileged
when starting the agent container should accomplish it. See https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilitiesJohn T
08/06/2021, 5:50 PMJohn T
08/06/2021, 5:57 PMJohn T
08/06/2021, 5:58 PM--privileged
still gives me the same issueZanie
Zanie
John T
08/06/2021, 7:10 PMdocker not found
errorJohn T
08/06/2021, 7:10 PMZanie
Kieran
09/01/2021, 6:50 PMKevin Kho
Kieran
09/01/2021, 8:01 PMKevin Kho
Kevin Kho
Kieran
09/01/2021, 8:05 PMdocker run -it -v /var/run/docker.sock:/var/run/docker.sock ubuntu:latest sh -c "apt-get update ; apt-get install <http://docker.io|docker.io> -y ; bash"
as a extra_dockerfile_commands
in the Docker class? to run prior to the healthcheck?Kevin Kho
-v /var/run/docker.sock:/var/run/docker.sock
is the important part, I think it would be mounted on the agent here ?Kevin Kho
-v
Kieran
09/01/2021, 9:55 PMKevin Kho
Kieran
09/01/2021, 10:03 PMKevin Kho
Kieran
09/01/2021, 10:38 PMKevin Kho
prefecthq/prefect:python.3.6
would pull that 3.6.14Kieran
09/02/2021, 7:03 AMECSRun()
and pull images from an ECR repo.
I have just noticed that the CI logs do show:
FROM prefecthq/prefect:0.15.4-python3.6
when building the image. How do I control that @Kevin Kho?Kevin Kho
pipenv
and activating it? Conda is hard to activate, pipenv might be easier but i’m not sure.