【发布时间】:2021-07-14 13:12:27
【问题描述】:
我必须将文件从 gcp 位置复制到 docker 映像中的特定目录。我使用 ubuntu:bionic 作为父图像。
安装 Python 和 Pip 后,我尝试了以下操作,
RUN pip install gsutil \
&& gsutil cp gs:<some location> /home/${USER}/<some other location>
在构建 docker 映像时,出现以下错误,
13 19.84 /bin/sh: 1: gsutil: not found
请让我知道我正在做的错误。
【问题讨论】:
-
您能分享一下您是如何安装 Python 和 PIP 的吗?
-
您是否只想在构建期间使用 gsutil 下载文件?您是否在该容器上使用 gsutil 来处理其他任何事情?
标签: docker google-cloud-platform dockerfile circleci gsutil