【发布时间】:2022-06-16 08:27:24
【问题描述】:
¿Como puedo crear una imagen con Docker?,tengo creado el siguiente Dockerfile:
# syntax=docker/dockerfile:1
FROM python:3.8-slim-buster
WORKDIR /python-docker
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]
He probado con los comandos:
docker build --tag python-image1
是docker tag python-image1
No se logra crear la imagen y me muestra el siguiente 错误: enter image description here
【问题讨论】:
-
我投票结束这个问题,因为它不是用英语写的