docker-compose出现错误:Creating fail with Could not find container for entity id

这个问题相当古怪。。。是在我升级docker,来回折腾的时候产生的,而且非常难搞,删也删不掉对应的container,又没法补上,终于google了半天,发现有人在docker的github上面给出了一个相当简单粗暴又十分有效的方案,真是人挡杀人,佛挡杀佛。。。。


For people using docker in more of a production-like environment and don't want to rm the world, I just did this and it worked:

sudo sqlite3 /var/lib/docker/linkgraph.db
delete from edge where entity_id = '<conflicting-entity-id-sha-1>';
delete from entity where id = '<conflicting-entity-id-sha-1>';

Where is the entity id causing you trouble like: 33f6f30a91eb31a86e9c715a1fba4cc28c8031ab62826d93c799e3849c341d26


奉上原文地址:https://github.com/docker/docker/issues/17691

Could not find a getter for id in class 的错误!

05-16

本人用 eclipse3.2+myeclipse5.1GA+hibernate3.0连接oracle写clob字段:rn数据库中的表(content)中有两个字段:id(int),content(clob),rn生成bean文件时:有两个文件产生了:content.java和contentid.javarn和Content.hbm.xmlrncontent.javarnpackage cn.fusion.beans;rnrn/**rn * Content generated by MyEclipse - Hibernate Toolsrn */rnrnpublic class Content implements java.io.Serializable rn // Fields rnrn private ContentId id;rn // Constructorsrn /** default constructor */rn public Content() rn rn /** full constructor */rn public Content(ContentId id) rn this.id = id;rn rn // Property accessorsrn public ContentId getId() rn return this.id;rn rn public void setId(ContentId id) rn this.id = id;rn rnrnrn-----------------rncontentid.javarnrnpackage cn.fusion.beans;rnrn/**rn * ContentId generated by MyEclipse - Hibernate Toolsrn */rnpublic class ContentId implements java.io.Serializable rn // Fields rn private Long id;rn private String content;rn // Constructorsrnrn /** default constructor */rn public ContentId() rn rn/** minimal constructor */rn public ContentId(Long id) rn this.id = id;rn rn /** full constructor */rn public ContentId(Long id, String content) rn this.id = id;rn this.content = content;rn rn // Property accessorsrnrn public Long getId() rn return this.id;rn rn rn public void setId(Long id) rn this.id = id;rn rnrn public String getContent() rn return this.content;rn public void setContent(String content) rn this.content = content;rn rnrn public boolean equals(Object other) rn if ( (this == other ) ) return true;rn if ( (other == null ) ) return false;rn if ( !(other instanceof ContentId) ) return false;rn ContentId castOther = ( ContentId ) other; rn rn return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )rn && ( (this.getContent()==castOther.getContent()) || ( this.getContent()!=null && castOther.getContent()!=null && this.getContent().equals(castOther.getContent()) ) );rn rn rn public int hashCode() rn int result = 17;rn rn result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );rn result = 37 * result + ( getContent() == null ? 0 : this.getContent().hashCode() );rn return result;rn rnrn--------------------------------rnContent.hbm.xmlrnContent.hbm.xmlrnrnrnrnrn rn rn rn rn rn rn rn rn rn rnrn rn我前几次成表bean文件时都是只有一个java文件的,这次一下生成两个了,觉得有点奇怪,那两个高底怎么使用,用平时的方法到提示Could not find a getter for id in class....请高手帮忙啊:::

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试

关闭