Docker Community Forums

Share and learn in the Docker community.

Start working with Postgres image


#1

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.


(Bryce Ryan) #2

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)
root@929b3077b82b:/#

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!