cloud

Docker

Dockerfile

Usage: select base image(usually with python), install dependencies using pip

drawback: need command line to assign port number

docker compose

easy to assign port mapping

volumes

1
volumes: - ./mlflow-artifacts:/mlflow-artifacts

将本地的 ./mlflow-artifacts 目录映射到容器内的 /mlflow-artifacts 目录,实现:

数据持久化:容器重启/删除后,数据不会丢失

实时同步:本地修改会立即反映到容器内(反之亦然)

Airflow