sbt-docker-compose
sbt-docker-compose copied to clipboard
"Could not parse image id"
I build the image and run the tests with dockerComposeTest
:
cd basic-with-tests
sbt publishLocal
sbt dockerComposeTest
And I get the following error:
Starting Test Pass against a new local Docker Compose instance.
Building a new Docker image.
[info] Compiling 1 Scala source to /Users/tkolev/Documents/src/p/sbt-docker-compose/examples/basic-with-tests/target/scala-2.11/classes...
[info] #1 [internal] load build definition from Dockerfile
[info] #1 sha256:4fe80f26fd94ea0b969097cd5b782f70deb12895565a53182fbaf04fe8a38057
[info] #1 transferring dockerfile: 159B done
[info] #1 DONE 0.0s
[info]
[info] #2 [internal] load .dockerignore
[info] #2 sha256:898ecfbe1284b8da8966be8cf4c9e9f34c97ec729f1403f5518ef3ae42f370b4
[info] #2 transferring context: 2B done
[info] #2 DONE 0.0s
[info]
[info] #3 [internal] load metadata for docker.io/library/java:latest
[info] #3 sha256:b068b5b88b0554fb1c53bb751f257a586571f2c917dc5f7d2e03284fa174009e
[info] #3 DONE 2.2s
[info]
[info] #4 [1/2] FROM docker.io/library/java@sha256:c1ff613e8ba25833d2e1940da0940c3824f03f802c449f3d1815a66b7f8c0e9d
[info] #4 sha256:b89ca3cfda0435b6aaeed8b03d8ce0e76540980728a7650b46cdda0d0d918303
[info] #4 DONE 0.0s
[info]
[info] #5 [internal] load build context
[info] #5 sha256:49709b247268a93ed92ebcb29b3c28b9988e5264da3302b35d9d23d91e6f974c
[info] #5 transferring context: 5.55MB 0.4s done
[info] #5 DONE 0.4s
[info]
[info] #6 [2/2] ADD 0/classes 1/scala-library-2.11.1.jar /app/
[info] #6 sha256:1de149b53a6b2e76040876e7d5e4824d29c05c88d1a8579e8aea76c16cb7f991
[info] #6 CACHED
[info]
[info] #7 exporting to image
[info] #7 sha256:e8c613e07b0b7ff33893b694f7759a10d42e180f2b4dc349fb57dc6b71dcab00
[info] #7 exporting layers done
[info] #7 writing image sha256:1fcbde2ec01bcf544a0f063a9d1b0111f60ac5f6365719d4dd497b71ab4fc528 done
[info] #7 DONE 0.0s
[info]
[info] Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[trace] Stack trace suppressed: run last *:docker for the full output.
[error] (*:docker) Could not parse image id
Had the same issue.
Updating sbt-docker
to 1.8.2, sbt
to 1.4.0+ and sbt-docker-compose
to 1.0.35 solved the issue for me.