2018年4月19日 星期四

docker-compose up問題

docker-compose up問題


docker-compose up
Pulling PostgreSQL (postgre:latest)...ERROR: pull access denied for postgre, repository does not exist or may require 'docker login'

可能image名稱有誤,或沒登入docker hub

docker-compose up
ERROR: for app  Cannot create container for service app: b'Conflict. The container name "/app" is already in use by container "bdf09cf31fe5f808c4493915ac9f33886fa460659473a7fdc071cd40a0d2e101". You have to remove (or rename) that container to be able to reuse that name.'

docker rm bdf09cf31fe5f808c4493915ac9f33886fa460659473a7fdc071cd40a0d2e101

重新build image並執行container
>docker-compose build && docker-compose up

工具

資源

沒有留言: