I am trying to install and run prefect server in A...
# prefect-server
s
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
```
these are my error screenshots:
I have tried to run docker using other commands as well - dockerd, system docker start etc. all commands are giving issue
k
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
ok, so prefect server can't be installed in a container?
k
No. Both docker-compose and the helm installation methods deploy the server services as individual containers
s
ok. Thank you! then i think installing the server on a VM will be a better way
k
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
👍 1