Docker

Start a Docker Container …

I apologize, the title of the post is slightly misleading, we will be specifying a command, but it isn’t the command you’re normally using to start the container. If you need to do some troubleshooting of a Docker container and the entrypoint or startup command you defined might be the …

Call Localhost on Host …

There are times when we need to call “localhost” on a host from within a Docker container. For example, when developing locally using Docker I need to call another service that is running on my host machine and not within the context of Docker, so I can’t use Docker bridge …

Copy Data from Postgres …

If you need to export data as a .csv file from Postgres and use Docker, here is a simple command to do just that. Using the Docker exec command we can COPY data from a PostgreSQL container to a .csv file on the host machine. docker exec -u <POSTGRES USER> <CONTAINER NAME> -d <POSTGRES …