Zdravim, po zbuildeni mojeho dockerfile:
FROM postgres:9.5-alpine
ENV POSTGRES_PASSWORD: mypw
ENV POSTGRES_USER: myuser
ENV POSTGRES_DB: mydb
EXPOSE 5432
CMD ["postgres"]
sa mi objavi v logu hlaska:
WARNING: No password has been set for the database.
This will allow anyone with access to the
Postgres port to access your database. In
Docker's default configuration, this is
effectively any other container on the same
system.
Use "-e POSTGRES_PASSWORD=password" to set
it in "docker run".
potom ked spustim zoznam vytvorenych databaz v kontaineri pomocou psql nastroja, ta databaza mydb tam nie je (ani user) .. viete co s tym ?