Skip to content

Docker Mount Error

Uncategorized
3 1 20
  • Hi, I get following error when I want to deploy Nodebb via Docker. On another Machine it runs just fine:

    Error response from daemon: failed to populate volume: error while mounting volume '/var/lib/docker/volumes/nodebb_redis-data/_data': failed to mount local volume: mount ./.docker/database/redis:/var/lib/docker/volumes/nodebb_redis-data/_data, flags: 0x1000: no such file or directory
    

    Somone can help?

  • support@community.nodebb.orgS support@community.nodebb.org shared this topic
  • May 20 11:48:25 its-egner.de systemd[1]: var-lib-docker-overlay2-d16b141610897bf49aa9efaa03c501d004a532c7030698d06435f1feaf240f6a-merged.mount: Deactivated successfully.
    May 20 11:48:25 its-egner.de dockerd[380014]: time="2025-05-20T11:48:25.487585934+02:00" level=error msg="Handler for POST /v1.42/containers/create returned error: failed to populate volume: error while mounting volume '/var/lib/docker/volumes/nodebb_nodebb-build/_data': failed to mount local volume: mount ./.docker/build:/var/lib/docker/volumes/nodebb_nodebb-build/_data, flags: 0x1000: no such file or directory"
    
    services:
      nodebb:
        build: .
        # image: ghcr.io/nodebb/nodebb:latest
        restart: unless-stopped
        ports:
          - '4568:4567' # comment this out if you don't want to expose NodeBB to the host, or change the first number to any port you want
        volumes:
          - nodebb-build:/usr/src/app/build
          - nodebb-uploads:/usr/src/app/public/uploads
          - nodebb-config:/opt/config
          - ./install/docker/setup.json:/usr/src/app/setup.json
    
    
    volumes:
      nodebb-build:
        driver: local
        driver_opts:
          o: bind
          type: none
          device: /root/nodebb/.docker/build
    
      nodebb-uploads:
        driver: local
        driver_opts:
          o: bind
          type: none
          device: /root/nodebb/.docker/public/uploads
    
      nodebb-config:
        driver: local
        driver_opts:
          o: bind
          type: none
          device: /root/nodebb/.docker/config
    
  • I found the answer.

    Need do docker Volume rm

    Then recreate volumes