Matthias
02/25/2022, 1:34 PMdocker.errors.NotFound: 404 Client Error for <http+docker://localhost/v1.41/containers/f30a3e9241fab0d272c3f36eae16867487fb187b964c8b3f22bc8fd05d2aa4d0/json>: Not Found ("No such container: f30a3e9241fab0d272c3f36eae16867487fb187b964c8b3f22bc8fd05d2aa4d0")
and the flow is stuck in submitted state. Does anyone knows how to fix it? Just to make sure, the only difference between the successful run and the run stuck in submitted state is the fact that I added a non-root user to the image.
https://github.com/anna-geller/packaging-prefect-flows/blob/master/flows_no_build/docker_script_docker_run_local_image.pyFROM prefecthq/prefect:0.15.6-python3.8
ENV PREFECT_HOME=/opt/prefect
WORKDIR $PREFECT_HOME
COPY ./flow.py $PREFECT_HOME/flows/flow.py
RUN useradd -m prefect-user && \
# make it so that the directories in $PREFECT_HOME (including $PREFECT_HOME)
# are world readable (and executable)
chown -R prefect-user:root $PREFECT_HOME
USER prefect-user
ENTRYPOINT /bin/sh -c bash
Note that it looks different from the one in the tutorial from Anna Geller, but it works if I remove everything starting from the RUN
statementAnna Geller
Matthias
02/25/2022, 1:50 PMAnna Geller
Matthias
02/25/2022, 6:58 PMAnna Geller
pip install $EXTRA_PIP_PACKAGES
Lastly, Prefect is using the base Python image in the slim version, which is pretty standard and commonly accepted for Python applications - what else would you want to use instead (e.g. Ubuntu base-image and install Python yourself)?
Having said that, feel free to submit a PR or GitHub issue and we can discuss it further with other engineers, if you feel like this is a problem we should address.Matthias
02/25/2022, 7:55 PM