Vscode-docker: Support Dockerfile with arbitrary names for Docker build

Created on 8 Jun 2017  路  6Comments  路  Source: microsoft/vscode-docker

Currently docker build command cannot use a Dockerfile that does not have Dockerfile as the name even if the user specifies it fully.

image

Most helpful comment

@SajayAntony Ah yeah that's a good catch. Thanks for reporting this! We can definitely update the build command to detect arbitrary suffixes on Dockerfiles (which we already do in other places).

All 6 comments

@SajayAntony Ah yeah that's a good catch. Thanks for reporting this! We can definitely update the build command to detect arbitrary suffixes on Dockerfiles (which we already do in other places).

hmmm... what version do you have? this works for me.

image

We made a fix for this a while back https://github.com/Microsoft/vscode-docker/commit/f7c8ecfb43e9a83b647004a401fc1e331e5048b3

Ahh .. it was an extension update issue.
Thanks for checking -

image

@chrisdias
Is there any way for the docker build command against the same file to remember the last tag that it built with so that the users don't have to types in the tag every time if its different?

no, can you open a new issue for this, describing exactly the behavior you would like to see?

Ok i've opened #93

Was this page helpful?
0 / 5 - 0 ratings