docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=elibroselec8 -p 5432:5432 --name database postgres:9.4 docker exec -it database psql database -U odoo -f file.sql docker run -it --link database:postgres --rm postgres:9.4 sh -c 'exec psql -h "$POSTGRES_PORT_5432_TCP_ADDR" -p "$POSTGRES_PORT_5432_TCP_PORT" -U postgres'