Is it possible for image to have multiple tags?

You can build an image with several tags and then push the image with the –all-tags option. Example: docker build -t reg/user/image:foo -t reg/user/image:latest . docker push reg/user/image –all-tags Older Docker clients that do not support –all-tags will push all tags by default (simply omit the option), newer clients will only push latest by default. … Read more

How to create User/Database in script for Docker Postgres

EDIT – since Jul 23, 2015 The official postgres docker image will run .sql scripts found in the /docker-entrypoint-initdb.d/ folder. So all you need is to create the following sql script: init.sql CREATE USER docker; CREATE DATABASE docker; GRANT ALL PRIVILEGES ON DATABASE docker TO docker; and add it in your Dockerfile: Dockerfile FROM library/postgres … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)