Docker image with PostgreSQL and AWS CLI installed for backing up a pg database to S3.
docker run --name some-image-name -e PGHOST="" -e PGPORT="" -e PGDATABASE="" -e PGUSER="" -e PGPASSWORD="" -e AWS_ACCESS_KEY_ID="" -e AWS_SECRET_ACCESS_KEY="" -e S3_BUCKET="" postgres-s3-backup
Both aws and psql must be configured in order to run those functions on this image. You can do that by either setting the environment variables in the docker run command, or by setting them through the awscli or psql commands. More information can be found at PSQL's Documentation and AWS' documentation.
This image is officially supported on Docker version 1.12.5.