Complete the Dockerfile line to specify the base image for a Python ML project.
FROM [1]The base image python:3.9-slim provides a lightweight Python environment ideal for ML projects.
Complete the command to build a Docker image named 'ml-model' from the current directory.
docker build -t [1] .The -t flag tags the image with the name ml-model, which is used to identify it later.
Fix the error in the Dockerfile line to install dependencies from requirements.txt.
RUN pip [1] -r requirements.txtThe correct pip command to install packages is pip install -r requirements.txt.
Fill both blanks to run the container interactively and remove it after exit.
docker run [1] [2] ml-model
-it runs the container interactively with a terminal, and --rm removes the container after it stops.
Fill all three blanks to create a Docker volume, mount it to /data, and run the container using it.
docker volume [1] ml_data docker run -v ml_data:[2] [3] ml-model
First, create the volume with docker volume create ml_data. Then mount it to /data inside the container and use --rm to remove the container after exit.