微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Dokku postgres:暴露命令错误:`容器名称“/dokku.postgres.APP_NAME.ambassador”已被容器使用`

如何解决Dokku postgres:暴露命令错误:`容器名称“/dokku.postgres.APP_NAME.ambassador”已被容器使用`

2

我检查了docker ps,没有容器05ac13c5682af1b1334ffda6d9142c2e577c81f0776c9a0449516d5ca6d55c8d

然后当再次尝试暴露时:

$ dokku postgres:expose wiki-fashion-hasura
docker: Error response from daemon: Conflict. The container name "/dokku.postgres.wiki-fashion-hasura.ambassador" is already in use by container "05ac13c5682af1b1334ffda6d9142c2e577c81f0776c9a0449516d5ca6d55c8d". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.

但是

$ dokku postgres:expose wiki-fashion-hasura
 !     Service wiki-fashion-hasura already exposed on port(s) 729

$ dokku postgres:info wiki-fashion-hasura
=====> wiki-fashion-hasura postgres service information
       Config dir:          /var/lib/dokku/services/postgres/wiki-fashion-hasura/data
       Data dir:            /var/lib/dokku/services/postgres/wiki-fashion-hasura/data
       Dsn:                 postgres://postgres:03baa499ae71ae371a9276536df5fa56@dokku-postgres-wiki-fashion-hasura:5432/wiki_fashion_hasura
       Exposed ports:       5432->729                
       Id:                  89aa118cd1a41fc28170f6de3ed236171d3f3e2d8c019c62f74b2381282284f9
       Internal ip:         172.17.0.8               
       Links:               wiki-fashion-hasura      
       Service root:        /var/lib/dokku/services/postgres/wiki-fashion-hasura
       Status:              running                  
       Version:             postgres:12

它没有暴露。 (同IP的其他端口正在解析)

我该如何进一步调试?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。