Docker

Troubleshooting Alpine …

I recently needed to do some troubleshooting of a Docker container that was using an Alpine base Docker image. The error I ran into, “Can’t run script file in Docker, no such file or directory”. Alpine images are great because of their small footprint that removes all of the …

Export PostgreSQL …

This simple command can be run from a terminal to export data (and schema) to a local file from the Docker database container. This assumes that data only lives within the container and is not persisted using a Docker Volume. You might have a configuration like this for local development or testing. …

Backup PostgreSQL …

If you’re using a PostgreSQL database and need to backup the database schema, this article will walk through some of the handy scripts I use to backup and restore a database schema. I like to use Docker for everything, especially for my development environment. I can easily automate my …