Code Monkey home page Code Monkey logo

Comments (2)

DeoLeung avatar DeoLeung commented on July 22, 2024 1

also u can do something like

# find out the hash of  the last run docker
docker ps -a | head
docker commit THE_HASH test1
docker run -it --rm --entrypoint=sh test1

# in the container
ls -l
cat pg_upgrade_dump_116017.log

from docker-postgres-upgrade.

tess1o avatar tess1o commented on July 22, 2024

you can mount a folder in your host to /var/lib/postgresql and then you'll see the log.
Example:
docker run --rm
-e POSTGRES_INITDB_ARGS="--wal-segsize=1024"
-v /home/user/db/12/main:/var/lib/postgresql/12/data
-v /home/user/db/13/main:/var/lib/postgresql/13/data
-v /home/user/:/var/lib/postgresql
tianon/postgres-upgrade:12-to-13

from docker-postgres-upgrade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.