Guest User

Untitled

a guest
Nov 27th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. // Remover todos containers
  2. docker rm -f $(docker ps -a -q)
  3.  
  4. // Docker compose
  5. docker-compose up
  6. docker-compose rm -f
  7.  
  8. // Construir imagens
  9. docker build -t despesas/web .
  10.  
  11. // Rodar imagens
  12. docker run -it \
  13. --link productivity-postgres \
  14. -p 8080:8080 \
  15. emmanuelneri/productivity-with-spring-app
  16.  
  17. docker run -d \
  18. --name productivity-postgres \
  19. -e POSTGRES_DB=productivity-with-spring \
  20. -e POSTGRES_USER=postgres \
  21. -e POSTGRES_PASSWORD=postgres \
  22. postgres:9.6
  23.  
  24. // Acessar imagem
  25. docker exec -it <container app ID> /bin/sh
  26. docker exec -it <container app ID> bash
Add Comment
Please, Sign In to add comment