I'm starting using alfresco community content service using Docker, I'm blind at this because I'm also doesn't know about Docker. So how about backing up and restoring alfresco database when running in docker? My Environment is Linux Centos 7.
Please read and understand Backing up and restoring the repository first. If you don't have any experience with docker you may prefer the non dockerized style in production. I haven't seen dockerized alfresco in production so far since most it departments don't have any docker experience and prefer vms. There is a nice install script for ubuntu called alfresco-ubuntu-install. Maybe this is a better starting point.
Alfresco backup in short:
A consistent alfresco backup contains (in the order of creation):
if you run the dockerized alfresco you can do everything from your docker host if you installed postgresql-client
e.g.
PGPASSWORD=alfresco pg_dump -U alfresco -d alfresco -h localhost > alfresco.sql