I created a container with the image of postgresql. When i run the container (docker run postgres), i don’t see where can i start to work with.
Folks working with the default postgres container would run it with an interactive shell and TTY, like so
some_user $ docker run -it postgres bash
root@929b3077b82b:/# postgres --version
postgres (PostgreSQL) 11.2 (Debian 11.2-1.pgdg90+1)
You can get a feel for how this works by trying that with commonly useful container images like busybox, ubuntu, alpine, and many others.
Enjoy the explorations!