################DOCKER#################### show docker version that's installed docker version ###############DOCKER COMPOSE################### show docker-compose version that's installed docker compose version run a docker compose yml file docker compose -f [COMMAND] #################################################### to access: http://172.18.30.24:8080 sitename: frontend NO https is implemented at this time user: Administrator pw: jms.... default username Administrator admin security brute force attack and MFA can be set up in System Settings logs are in /var/lib/docker/container/ login logs are in the erpnext-backend container show running containers: docker ps stop a container docker stop start a stopped container docker start stop all docker containers: docker stop $(docker ps -aq) run erp containter (my project was originally named pwd) cd /erpnext_docker docker compose up run erp container detached (throughs root permission error with bench exec -it /bin/bash docker compose up -d ###################DOCKER IMAGES############################# show all installed docker images docker images ###################DOCKER VOLUMES################################## docker volume- a persistent data storage area used by docker persistent data stored in /var/lib/docker/volumes prepended with the directory (project) name and mounted inside container at /var/lib/mysql ie volumes: - db-data:/var/lib/mysql (host location):mount point inside container if you run it from /erpnext_docker, the volume name would be /var/lib/docker/volumes/erpnext_docker_db-data if you created it with a docker compose -p then it prepends that project name to the volumes name list all docker volumes: docker volume ls #############DOCKER CONTAINERS############################################### list all containers docker container ls -a list running containers docker ps remove all containers (but not volumes) docker contaner prune go into a container (must be a running container) docker exec -it /bin/bash ####once inside####### #####bench######## help bench --help ##################BACKUPS AND RESTORES########################### backup (doing this will update the backup in the downloads backup page of erpnext) (for container id use the backend container name) (reload the page under the user name to see it) docker exec -it bash -c "cd /home/frappe/frappe-bench && bench backup --with-files" or from inside the backend container bench backup --with-files backups are stored in container at ./sites/frontend/private/backups restore from inside the bench-worker container must have full path: bench --force --site frontend restore /home/frappe/frappe-bench/sites/frontend/private/backups/20250830_130002-frontend-database.sql.gz --with-private-files /home/frappe/frappe-bench/sites/frontend/private/backups/20250830_130002-frontend-private-files.tar --with-public-files /home/frappe/frappe-bench/sites/frontend/private/backups/20250830_130002-frontend-files.tar backups are stored on the host (LS6) at: /erpnext_docker/backups restore takes several minutes ################################################################ prune old containers remain in /var/lib/docker/containers get rid of stopped containers docker container prune list all apps bench list-apps to check out the mysql database: docker exec -it /bin/bash mysql -u root -p password: admin download app and make it available to install bench get-app install app bench install-app uninstall app from site bench uninstall-app remove app from bench environment bench remove-app docker compose build needs a Dockerfile the error: cannot find default company during setup wizard was resolved by entering the workbench container and executing: bench --site frontend -reinstall caution!!! this wipes out and starts a fresh database to copy a file in a containter, from the directory you want it copied to: docker cp c1cbdc0d2567:/home/frappe/frappe-bench/sites/frontend/private/backups/20250404_110437-frontend-database.sql.gz .