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

yusufkaratoprak picture yusufkaratoprak  ·  4Comments

bradygmsft picture bradygmsft  ·  7Comments

revmischa picture revmischa  ·  6Comments

afaddoul picture afaddoul  ·  7Comments

thernstig picture thernstig  ·  3Comments