Advertisement
Guest User

Untitled

a guest
Aug 28th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. This exemple is based on redmine container.
  2.  
  3. 1- Fire up the postgres database container :
  4. docker run -d --name test-postgres -e POSTGRES_PASSWORD=secret -e POSTGRES_USER=redmine postgres
  5.  
  6. 2- Fire up redmine container and pass the postgres container using --link :
  7. docker run -d --name my-redmine --link test-postgres:postgres redmine
  8.  
  9. Test :
  10.  
  11. $ docker exec -it my-redmine bash
  12.  
  13. $ env | grep POSTGR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement