Unexpected error running Liquibase: The file /liquibase/changelog/changelog.xml was not found in the configured search path:

Hello team, it’s my first time with liquibase, and I want to use from docker
I have the following error:

Unexpected error running Liquibase: The file /liquibase/changelog/changelog.xml was not found in the configured search path:

The command I’m running is the following:

docker run --name liquibase -it --rm --network=host -v ~/moro_dev/dockers/liquibase/changelog:/liquibase/changelog liquibase/liquibase:latest --changeLogFile=/liquibase/changelog/changelog.xml - -url=jdbc:oracle:thin:@localhost:1521/XEPDB1 --username=morodev --password=intel5 update

I need help, I’m stuck.

Getting the same issue, this is a snippet in my docker file:

  liquibase:
    image: liquibase/liquibase:latest
    command: [
      "--url=jdbc:mysql://mysql:3306/patshala?autoReconnect=true&amp&allowPublicKeyRetrieval=true&amp&useSSL=false",
      "--username=root",
      "--password=root",
      "--changeLogFile=/changelog/db.changelog.yaml",
      "update"
    ]
    volumes:
      - ./db:/liquibase/changelog
      - ./db/changelog/sql:/liquibase/changelog/sql
      - ./mysql-connector-j-8.1.0.jar:/liquibase/lib/mysql-connector-j-8.1.0.jar

This is where my changelog file is saved:
./db/changelog

This is where my sql files are saved:
./db/changelog/sql

This is my changelog file:

databaseChangeLog:
    - changeSet:
          id: 001
          author: me
          changes:
              - sqlFile:
                    path: ./sql/0-create-table-relationships.sql
    - changeSet:
          id: 002
          author: me
          changes:
              - sqlFile:
                    path: ./sql/1-create-tables-users.sql
    - changeSet:
          id: 003
          author: me
          changes:
              - sqlFile:
                    path: ./sql/003-insert-data-foo.sql

The changeLogFile parameter should not be an absolute path filename, it should be a realtive path. Try with just db.changelog.yaml.

This page might help: