How to Commit a configured Confluence Docker container as a new Image

Up front … I’m a Docker newbie. I’m trying to get Atlassian Conflunce set up in Docker containers … I’ve got my Postgres dbms running in a docker container and I’m able to get the atlassian/confluence-server image running as a container and able to configure it to use the Postgres DBMS … good so far. When i try to snap shot my container with "docker commit saved/confluence-server I get a new Image created. But when I go to run that image its start’s confluence as if it has not been configured … Any clues on what I’m doing wrong or missing?