Vscode-docker: Enable Docker build to keep history of the image:tag that the user has specified for a Dockerfile

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

Users currently have to retype the tag specified during build if the tag is not of the form {folder}:latest.
Enabling a history of the tags currently built for a file would enable the user to simply rebuild the docker file without having to retype this over again ..

For e.g. If the user runs docker build with a image:tag as shown below the expectation is that the extension remembers this 馃榾
image

As part of the dev inner loop it would nice if rebuild can keep history of tag instead of the default -> Also might be worth considering deriving the tag from the file extension.

image

needs more info

Most helpful comment

I like this suggestion!

All 5 comments

I like this suggestion!

Another suggestion that is similar to this is to add --rm to the build command to remove intermediate and none images after a successful build. Reason is current docker build command using the same tag name pushes the previous tag to have a tag of none.

@jgainfort i created https://github.com/Microsoft/vscode-docker/issues/111

PRs much appreciate everywhere!

@sajayantony We currently show the last-used tag as the default value when you go to build. I assume this takes care of this issue, right?

Yep it retains the tag information.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kludex picture Kludex  路  7Comments

oberfoerster picture oberfoerster  路  6Comments

calbot picture calbot  路  7Comments

chrisdias picture chrisdias  路  7Comments

yusufkaratoprak picture yusufkaratoprak  路  4Comments