<#17571 docker_image source=None not working> New ...
# github-notifications
q
#17571 docker_image source=None not working New issue created by tareshsethi Describe the bug I am trying to use the instructions field for docker_image. I have a docker_image target that looks like
Copy code
docker_image(
    name="srcs",
    dependencies=['...'],
    registries=['...'],
    repository='...',
    instructions=['FROM ...',
    source=None,
    image_tags=['...'],
)
and I get the following error when i do a pants peek on srcs:
Copy code
InvalidFieldException: The `docker_image` ... provides both a Dockerfile with the `source` field, and Dockerfile contents with the `instructions` field, which is not supported.
To fix, please either set `source=None` or `instructions=None
Setting source='' seems to solve it, but the docs say setting to None should work. And i would also assume the ideal behavior would be that setting
instructions
would automatically override the source arg? Thank Pants version 2.14.0 OS Only have tested on MacOS Monterey 12.0.1, Intel pantsbuild/pants
u