边暮垂城 2024-06-26 17:03 采纳率: 0%
浏览 229
已结题

AutoDL无法使用docker install吗?

我想要在在autodl部署以下内容(escriptorium),但是遇到了很多问题:

docker install
Last edited by Robin Tissot
Install git, docker.
Note: don't forget docker's post-installation steps! (eg for linux).

Fetch the source:

$ git clone https://gitlab.com/scripta/escriptorium.git

Copy the environement variables file

$ cd escriptorium && cp variables.env_example variables.env  

Change some of those variables if you wish to,
notably the super-user username and password are created from DJANGO_SU_NAME and DJANGO_SU_PASSWORD, defaulting to admin:admin.

Pull and run the docker containers

$ docker compose pull
$ docker compose up -d 

You should be able to access the website at http://localhost:8080/

To update:

$ git pull  
$ docker compose pull
$ docker compose up -d

Use your GPU:
Install nvidia-docker2, if you have issues, follow this guide.
Update docker-compose.override.yml to include this content:

version: "2.4"

services:
   celery-gpu:
      shm_size: '3gb'
      runtime: nvidia
      environment:
        - KRAKEN_TRAINING_DEVICE=cuda:0
        - NVIDIA_VISIBLE_DEVICES=all
        - NVIDIA_DRIVER_CAPABILITIES=all

虽然有full install,但是对我来说有点困难

  • 写回答

19条回答 默认 最新

  • 普通 网友 2024-06-26 17:09
    关注
    获得0.60元问题酬金

    以下参考免费微信小程序:皆我百晓生 作答,并由妄北y整理回复。

    AutoDL 是一个用于自动化深度学习模型训练的平台,它可以支持 Docker 容器的部署。根据你的描述,你想要在 AutoDL 上部署 Escriptorium,这是一个基于 Django 的项目。以下是根据你提供的步骤进行安装和配置的详细指南:

    1. 安装 Git 和 Docker

      • 确保你的系统上安装了 Git 和 Docker。如果没有,请按照官方文档进行安装。
    2. 克隆 Escriptorium 源代码

      $ git clone https://gitlab.com/scripta/escriptorium.git
      
    3. 复制环境变量文件

      $ cd escriptorium
      $ cp variables.env_example variables.env
      
    4. 编辑环境变量

      • 根据需要编辑 variables.env 文件,特别是超级用户(super-user)的用户名和密码,它们由 DJANGO_SU_NAMEDJANGO_SU_PASSWORD 环境变量控制,默认为 admin:admin
    5. 拉取并运行 Docker 容器

      $ docker compose pull
      $ docker compose up -d
      
      • 这将启动服务,并在后台运行。
    6. 访问网站

      • 你应该可以通过 http://localhost:8080/ 访问网站。
    7. 更新项目

      • 当需要更新 Escriptorium 时,可以使用以下命令:
        $ git pull
        $ docker compose pull
        $ docker compose up -d
        
    8. 使用 GPU

      • 如果你需要使用 GPU 进行训练,需要安装 nvidia-docker2。如果遇到问题,可以按照相关指南进行解决。
      • 更新 docker-compose.override.yml 文件,添加以下内容以包含 GPU 支持:
        version: "2.4"
        
        services:
          celery-gpu:
            shm_size: '3gb'
            runtime: nvidia
            environment:
              - KRAKEN_TRAINING_DEVICE=cuda:0
              - NVIDIA_VISIBLE_DEVICES=all
              - NVIDIA_DRIVER_CAPABILITIES=all
        
    9. 在 AutoDL 上部署

      • 如果你在使用 AutoDL 时遇到困难,可能需要检查 AutoDL 的文档,以了解如何配置 Docker 容器和环境变量。
    10. 解决困难

      • 如果你在使用上述步骤时遇到问题,可以尝试以下方法:
        • 确保 Docker 服务正在运行。
        • 检查 docker-compose.ymldocker-compose.override.yml 文件是否有语法错误。
        • 确保你的 Docker 版本与 Escriptorium 项目兼容。
        • 查看 Docker 的日志,了解可能出现的错误信息。

    请注意,AutoDL 的具体配置可能会根据其版本和设置有所不同。如果上述步骤无法解决你的问题,你可能需要查看 AutoDL 的官方文档或联系其技术支持以获得更具体的帮助。

    评论

报告相同问题?

问题事件

  • 系统已结题 7月4日
  • 创建了问题 6月26日

悬赏问题

  • ¥100 速求!商品购买力最优化问题(用遗传算法求解,给出python代码)
  • ¥15 虚拟机检测,可以是封装好的DLL,可付费
  • ¥15 kafka无法正常启动(只启动了一瞬间会然后挂了)
  • ¥30 使用matlab将观测点聚合成多条目标轨迹
  • ¥15 Workbench中材料库无法更新,如何解决?
  • ¥20 如何推断此服务器配置
  • ¥15 关于github的项目怎么在pycharm上面运行
  • ¥15 内存地址视频流转RTMP
  • ¥100 有偿,谁有移远的EC200S固件和最新的Qflsh工具。
  • ¥15 有没有整苹果智能分拣线上图像数据