2

What's wrong with the following spec? (Image parameter is here to tag resulting image).

version: '3'

services:
   foo:
      build:
         image: foo/bar
         dockerfile: Dockerfile
         context: .

System output:

services.foo.build contains unsupported option: 'image'

Versions: docker-compose: 1.14.0; Docker: 17.06.0-ce

Ta Mu
  • 6,772
  • 5
  • 39
  • 82

1 Answers1

7

“Image” needs to be at the same level as “build”.

Corey Quinn
  • 126
  • 1