Installed ERPNext via docker (not bench), I can't find the database anywhere


I have installed ERPNext via docker (not bench), and I can’t find the database anywhere.

I knew the database name and password from the .json file, but I don’t know where to find it exactly.
The server only shows:

I am able to backup my files, but I need to backup the database also. Any recommendation?


Docker spell:

docker ps

It will list running containers.

Backup section in docs : frappe_docker/ at main · frappe/frappe_docker · GitHub

Thank you much Revant for reply.

May I ask what is meant by


in the code of docker backup?

Thank you

The name given to the project by docker-compose --project-name

By default it’ll take directory name where docker-compose was executed.

Thank you very much for replying

It gives me an error every time I try to execute the code. = frappe_docker

It says it doesn’t find the directory:

can you please give me an example of code can be executed.

docker run \ -e "" \ -e "WITH_FILES=1" \ -v <project-name>_sites-vol:/home/frappe/frappe-bench/sites \ --network <project-name>_default \ frappe/erpnext-worker:$VERSION backup

All docker containers need to be started before running site creation command. Are all containers running?

Yes, all containers are running

docker volume ls

Use the volume listed here in the backup command.

  1. Play with docker is working, just tried now. Play with Docker
  2. It could create backup and restore in tests Travis CI - Test and Deploy with Confidence

I don’t know what is happening on your machine.