Nextcloud in docker Exit Code 127

  docker, docker-compose, nextcloud

I want to start nextcloud and mariadb on docker with a compose file. If I use the following line, there’s an error:

command: –-transaction-isolation=READ-COMMITTED --binlog-format=ROW

db_nextcloud exited with code 127

If I don’t use this parameters, it works, but I think, this parameters are necessary?

Here the compose file:

version: "3"

services:
  db_nextcloud: 
    container_name: db_nextcloud
    image: linuxserver/mariadb:arm32v7-latest
    restart: always 
    command: –-transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes: 
      - /var/lib/docker/volumes/mariadbnextcloud2:/var/lib/mysql 
    environment: 
      - MYSQL_ROOT_PASSWORD=xxx
      - MYSQL_PASSWORD=xxx 
      - MYSQL_DATABASE=nextcloud 
      - MYSQL_USER=nextcloud
  
  nextcloud: 
    container_name: nextcloud
    image: nextcloud
    restart: always
    depends_on: 
      - db_nextcloud
    ports: 
      - 8080:80 
    links: 
      - db_nextcloud 
    volumes: 
      - /var/lib/docker/volumes/nextcloud2:/var/www/html 
    environment:
      - MYSQL_PASSWORD=q&zxTmQf 
      - MYSQL_DATABASE=nextcloud 
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=mariadbnextcloud

Source: Docker Questions

LEAVE A COMMENT