我從CMD線運行搬運工沒有問題:從gradle這個運行碼頭工人:不能拉圖像
docker run -p 5432:5432 -it --rm postgres:9.5.2`
但是當我從gradle這個做到這一點,利用dcompose plugin,我得到
Could not evaluate onlyIf predicate for task ':pullDatabaseImage'.
> Docker command failed: Certificate path (DOCKER_CERT_PATH) '/home/xxx/.docker/certs' doesn't exist.
我的配置:
plugins {
id "com.chrisgahlert.gradle-dcompose-plugin" version "0.3.2"
}
dcompose {
database {
image = 'postgres:9.5.2' // Required
}
}
test {
dependsOn startDatabaseContainer
finalizedBy removeDatabaseContainer
}
怎麼了?我如何從gradle運行docker?
嗨,你能接受你的答案,以便該問題不顯示爲未答覆?謝謝! –