https://prefect.io logo
Title
s

Shuchita Tripathi

03/08/2022, 5:07 PM
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
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

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
👍 1