Last active
March 12, 2021 18:12
-
-
Save mariotpc/a92debe2fe9879588ec8c8d4aef77b78 to your computer and use it in GitHub Desktop.
port translate between localhost to docker or podman container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Useful to me...! | |
podman run -d --name mariotpc-psql -e POSTGRES_PASSWORD="password" -e PGDATA=/var/lib/postgresql/data/pgdata -d -p 5432:5432 postgres | |
[root@rpi mariotpc]# podman ps -al | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
500e4c9ca19a docker.io/library/postgres:latest postgres About a minute ago Up About a minute ago 0.0.0.0:5432->5432/tcp mariotpc-psql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment