時間(聲明:我是一個碼頭工人小白)泊塢窗名稱變長各我跑碼頭工人,撰寫
我每次運行sudo docker-compose up
,圖像名稱變長了一點。它看起來像圖像的哈希值(或類似的東西)被粘到前每次:
1 [email protected]:~/projects/p⟫ sudo docker-compose up
Recreating 32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_p_postgres_1
...
1 [email protected]:~/projects/p⟫ sudo docker-compose up
Recreating 32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_p_postgres_1
...
1 [email protected]:~/projects/p⟫ sudo docker-compose up
Recreating 32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_32ba9196a0a9_p_postgres_1
正如你可能想象,這是...真是讓人惱火。我怎樣才能防止這一點?
我對Docker還很新,所以我不確定如何開始調試。我更有知識的同事在接下來的幾天就要離開了。
其它潛在有用的信息:
docker --version
:1.10.3,建立20f81dd- 的Ubuntu 14.04
sudo docker-compose build
成功完成與-p
運行並獲得成功的
滑稽的問題,問題可能是因爲短項目名稱。嘗試運行'docker-compose -p testtest up'或者重命名你的項目dir'p'到更長的時間。只是一個瘋狂的猜測;) – jazgot