V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
azev
V2EX  ›  问与答

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

  •  
  •   azev · Oct 25, 2024 · 1347 views
    This topic created in 555 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   ·   2691 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 14:19 · PVG 22:19 · LAX 07:19 · JFK 10:19
    ♥ Do have faith in what you're doing.