Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Remover todos containers
- docker rm -f $(docker ps -a -q)
- // Docker compose
- docker-compose up
- docker-compose rm -f
- // Construir imagens
- docker build -t despesas/web .
- // Rodar imagens
- docker run -it \
- --link productivity-postgres \
- -p 8080:8080 \
- emmanuelneri/productivity-with-spring-app
- docker run -d \
- --name productivity-postgres \
- -e POSTGRES_DB=productivity-with-spring \
- -e POSTGRES_USER=postgres \
- -e POSTGRES_PASSWORD=postgres \
- postgres:9.6
- // Acessar imagem
- docker exec -it <container app ID> /bin/sh
- docker exec -it <container app ID> bash
Add Comment
Please, Sign In to add comment