【问题标题】:Docker full with URL path带有 URL 路径的 Docker
【发布时间】:2021-01-27 12:26:52
【问题描述】:

大家好,

任何人都知道是否可以从 github 中提取单个容器?我确实有这个链接https://github.com/aws/sagemaker-pytorch-training-toolkit,我想把容器拉到这个链接https://github.com/aws/sagemaker-pytorch-training-toolkit/tree/master/src/sagemaker_pytorch_container

我确实尝试使用 build docker build -t https://github.com/abc/sagemaker-pytorch-training-toolkit.git 来构建一个文件的映像,但有一个 init.py 文件,我不确定它是否有必要。

谢谢

【问题讨论】:

    标签: docker dockerfile pytorch docker-build


    【解决方案1】:

    你走错了路。

    1. Github 不存储 docker 镜像,所以你无法从那里拉取它。
    2. AWS Sagemaker 提供了预构建的镜像,您只需在创建实例时选择要使用的镜像。见https://docs.aws.amazon.com/sagemaker/latest/dg/howitworks-create-ws.html
    3. 如果你需要一个带有pytorch的docker,只需运行docker pull pytorch/pytorch

    【讨论】:

    • 哦,我明白了!我一直有错误的想法。我一直认为 Github 存储图像,我们可以像 Docker Hub 一样拉取它。非常感谢您的澄清!
    猜你喜欢
    • 2021-09-16
    • 2017-06-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-03
    • 1970-01-01
    • 2012-12-02
    • 1970-01-01
    相关资源
    最近更新 更多