docker-compose出現錯誤:Creating fail with Could not find container for entity id <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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章