OCI runtime create failed

I am getting this error when I pulled the latest docker image

I am using this compose file docker/.examples/docker-compose/insecure/postgres/fpm/compose.yaml at master · nextcloud/docker · GitHub

the installation was working fine before, however I am getting this error now. I don’t know what I have to do.


                                                                          
[+] Running 5/6
 ✔ Network nextcloud_default  Created                                0.0s 
 ✔ Container nextcloud-redis  Started                                1.5s 
 ⠼ Container nextcloud-db     Starting                               1.5s 
 ✔ Container nextcloud-cron   Created                                0.0s 
 ✔ Container nextcloud-app    Created                                0.0s 
 ✔ Container nextcloud-web    Created                                0.0s 
Error response from daemon: failed to create task for container: 
failed to create shim task: OCI runtime create failed: runc create failed: 
unable to start container process: error during container init: error 
mounting "/home/pi/docker/nextcloud/db" to rootfs at "/var/lib/postgresql/data":
 change mount propagation through procfd: open o_path procfd: open /var/lib/docker/overlay2/6ff7b3264a9da3bb25ae681625f7521fcbb026296d371e8ab09225327903a71b/merged/var/lib/postgresql/data: 
no such file or directory: unknown

I am having the same issue. Things were working fine until I did a docker compose pull today.

I’m not sure what version I was using before the pull.

yes I got the issue when I pulled the latest docker files, thankfully I keep a record of all the docker images so I reverted all of them. the last version that was working for me is the v31.0.7and here is the tagged version of those images.

I use the fm version not the apache so

services:
  # Note: PostgreSQL is an external service. You can find more information about the configuration here:
  # https://hub.docker.com/_/postgres
  db:
    # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server
    container_name: nextcloud-db
    # image: postgres:alpine
    image: postgres@sha256:6567bca8d7bc8c82c5922425a0baee57be8402df92bae5eacad5f01ae9544daa
    volumes:
      - ./db:/var/lib/postgresql/data
    env_file:
      - db.env
    environment:
      - TZ=Asia/Kolkata
    # restart: always
    labels:
      - sablier.enable=true
      - sablier.group=nextcloud
    healthcheck:
      test: ["CMD-SHELL", "pg_isready"]
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 10s

  # Note: Redis is an external service. You can find more information about the configuration here:
  # https://hub.docker.com/_/redis
  redis:
    container_name: nextcloud-redis
    # image: redis:alpine
    image: redis@sha256:987c376c727652f99625c7d205a1cba3cb2c53b92b0b62aade2bd48ee1593232
    environment:
      - TZ=Asia/Kolkata
    # restart: always
    labels:
      - sablier.enable=true
      - sablier.group=nextcloud
    healthcheck:
      test: ["CMD", "redis-cli", "-h", "localhost", "ping"]
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 10s

  app:
    container_name: nextcloud-app
    # image: nextcloud:fpm-alpine
    image: nextcloud@sha256:29071abdb658237a916aa5fcc83ee606367a8abf0f6282bdf9433f26401f2a00
    user: "1000:1000"
    volumes:
      - ./nextcloud:/var/www/html
      # - ./data:/var/www/html/data
      # - ./config:/var/www/html/config
      # - ./apps:/var/www/html/apps
      - /media/pi/SSD:/ssd
      # NOTE: The `volumes` config of the `cron` and `app` containers must match
    environment:
      - TZ=Asia/Kolkata
      - POSTGRES_HOST=db
      - REDIS_HOST=redis
    env_file:
      - db.env
    depends_on:
      - db
      - redis
    # restart: always
    labels:
      - sablier.enable=true
      - sablier.group=nextcloud
    healthcheck:
      # test: ["CMD", "su", "-s", "/bin/sh", "www-data", "-c", "php /var/www/html/occ status | grep -q 'installed: true'"]
      test: ["CMD-SHELL", "php /var/www/html/occ status | grep -q 'installed: true'"]
      interval: 60s
      retries: 5
      start_period: 10s
      timeout: 10s

  # Note: Nginx is an external service. You can find more information about the configuration here:
  # https://hub.docker.com/_/nginx/
  web:
    container_name: nextcloud-web
    # image: nginx:alpine-slim
    image: nginx@sha256:64daa9307345a975d3952f4252827ed4be7f03ea675ad7bb5821f75ad3d43095
    ports:
      - 8092:80
    volumes:
      # https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html
      - ./web/nginx.conf:/etc/nginx/nginx.conf:ro  
      # NOTE: The `volumes` included below should match those of the `app` container (unless you know what you're doing)
      - ./nextcloud:/var/www/html
    depends_on:
      - app
    environment:
      - TZ=Asia/Kolkata
    # restart: always
    labels:
      - sablier.enable=true
      - sablier.group=nextcloud
    healthcheck:
      test: ["CMD", "wget", "--spider", "--timeout=5", "http://127.0.0.1/status.php"]
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 10s

  cron:
    container_name: nextcloud-cron
    # image: nextcloud:fpm-alpine
    image: nextcloud@sha256:29071abdb658237a916aa5fcc83ee606367a8abf0f6282bdf9433f26401f2a00
    user: "1000:1000"
    volumes:
      - ./nextcloud:/var/www/html
      # NOTE: The `volumes` config of the `cron` and `app` containers must match
    entrypoint: /cron.sh
    depends_on:
      - db
      - redis
    # restart: always
    labels:
      - sablier.enable=true
      - sablier.group=nextcloud
    healthcheck:
      test: ["CMD-SHELL", "php /var/www/html/occ status | grep -q 'installed: true'"]
      interval: 60s
      timeout: 10s
      retries: 3
      start_period: 10s
    # healthcheck:
    #   test: ["CMD", "wget", "--spider", "--timeout=5", "http://127.0.0.1/status.php"]
    #   interval: 30s
    #   timeout: 5s
    #   retries: 3
    #   start_period: 10s

volumes:
  db:
  nextcloud: