azev
V2EX  ›  问与答

使用 docker 安装的 alist 添加本地存储 添加的是 alist 容器里的存储

  •  
  •   azev · Oct 25, 2024 · 1420 views
    This topic created in 593 days ago, the information mentioned may be changed or developed.

    这个问题有解吗?还是说想加载主机是不是就不能 docker 安装?

    2 replies    2024-10-25 22:28:46 +08:00
    xiri
        1
    xiri  
       Oct 25, 2024 via Android
    把主机的目录挂载到 docker 容器里不就好了嘛
    eleba
        2
    eleba  
       Oct 25, 2024
    ```
    alist:
    image: xhofe/alist:latest
    container_name: alist
    restart: always
    volumes:
    - ./alist:/opt/alist/data
    - ./share:/opt/alist/share
    ports:
    - "5244:5244"
    environment:
    - TZ=Asia/Shanghai
    - PUID=1000
    - PGID=1000
    - UMASK=022
    ```
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5872 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 01:57 · PVG 09:57 · LAX 18:57 · JFK 21:57
    ♥ Do have faith in what you're doing.