Replies: 1 comment
-
I think it probably would be better to treat postgres container as ephemeral and use postgres data export functions to move the data to a new container. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to transfer docker image built from my laptop to another computer without internet connection.
The way I have done it:
docker save
to get the.tar
file of the image.tar
file into a USB flash drive.tar
file to the other computer without internet connectiondocker run
imagedocker exec -it [CONTAINER ID] psql -U postgres
(I have not changed any config, other than setting either POSTGRES_PASSWORD=password or POSTGRES_HOST_AUTH_METHOD=trust for testing)and I got
psql: error: connection to server on socket "/var/run/postgresl/.s.PGSQL.5432" failed: FATAL: could not find tuple for opclass 1981
. The postgres container running on my laptop is working fine.docker logs does not show anything particular:
also I installed docker & docker compose on the computer without internet connection through
dpkg -i
with the packages I got from https://download.docker.com/linux/ubuntu/dists/jammy/pool/stable/amd64/Please do enlighten me. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions