I am trying to install and run prefect server in Azure Container. This is my docker file.
Without the docker run command, I am getting docker compose down error.
with the docker run, the error states - executor failed running
Copy code
FROM prefecthq/prefect:latest
WORKDIR /app
RUN apt-get -y update && \
apt-get install -y <http://docker.io|docker.io> && \
apt-get install -y docker-compose
RUN docker run --privileged -d docker:dind
RUN docker --version
COPY docker-compose.yml .
RUN prefect backend server && \
prefect server start
```
Shuchita Tripathi
03/08/2022, 5:08 PM
these are my error screenshots:
Shuchita Tripathi
03/08/2022, 5:09 PM
I have tried to run docker using other commands as well - dockerd, system docker start etc.
all commands are giving issue
k
Kevin Kho
03/08/2022, 5:09 PM
You can’t do this because
prefect server start
uses docker compose so you would be running docker in docker which you can’t do my default. You can’t host the entire stack in one azure container
s
Shuchita Tripathi
03/08/2022, 5:10 PM
ok, so prefect server can't be installed in a container?
k
Kevin Kho
03/08/2022, 5:11 PM
No. Both docker-compose and the helm installation methods deploy the server services as individual containers
s
Shuchita Tripathi
03/08/2022, 5:26 PM
ok. Thank you! then i think installing the server on a VM will be a better way
k
Kevin Kho
03/08/2022, 6:07 PM
You should also know Cloud has 20k task runs for free every month, which is a lot, and then you dont need to set it up yourself
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.