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
工具
- telnet - 查db 有無啟動,例如:telnet 127.0.0.1 5432。Windows 10 啟動telnet。
沒有留言:
張貼留言