Skip to content

Instantly share code, notes, and snippets.

@acatejr
Last active July 12, 2017 19:11
Show Gist options
  • Save acatejr/effa53b16f347c521ab4c84476b4da69 to your computer and use it in GitHub Desktop.
Save acatejr/effa53b16f347c521ab4c84476b4da69 to your computer and use it in GitHub Desktop.
Docker Notes

Create a docker volume for persisting postgresql data.

docker create -v /var/lib/postgresql/data --name postgres9.5-data busybox

Run a postgresql instance using the created volume.

docker run --name local-postgres9.5 -p 5432:5432 -e POSTGRES_PASSWORD=sql -d --volumes-from postgres9.5-data postgres:9.5

Run Update With Fixes

RUN apt update -y --fix-missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment