[英]Postgres DB not starting in Docker - Mac
I already using Postgres DB in my development and at the last time when I'm push my Spring Micro-services the Postgres DB is not starting, following is the docker output from kitematic 我已经在开发中使用了Postgres DB,并且在最后一次推送Spring Micro-services时,Postgres DB没有启动,下面是kitematic的docker输出
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
2017-10-17T08:37:47.562145630Z
Data page checksums are disabled.
2017-10-17T08:37:47.562162938Z
fixing permissions on existing directory /var/lib/postgresql/data ... ok
initdb: could not create directory "/var/lib/postgresql/data/pg_xlog": No space left on device
initdb: removing contents of data directory "/var/lib/postgresql/data"
Any one have a idea on this? 有人对此有想法吗? I couldn't find a solution
我找不到解决方案
Hi if you have good amount of space in your machine ,then this problem is because of dangling images and dangling volume remove those using docker volume rm $(docker volume ls -f dangling=true -q)
or docker volume prune
,for images docker rmi $(docker images -f dangling=true -q)
您好,如果您的计算机中有足够的空间,则此问题是由于悬空的映像和悬空的卷,请删除那些使用
docker volume rm $(docker volume ls -f dangling=true -q)
或docker volume prune
的映像,用于映像docker rmi $(docker images -f dangling=true -q)
you can also do docker system prune
to clean the docker completely 您还可以执行
docker system prune
来彻底清理docker
if you still face this problem the only way to do is reset the docker complete just like a new one 如果您仍然遇到此问题,唯一的方法是将docker complete重置为一个新的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.