Skip to content

Linux: 'Rebuild Container Without Cache' doesn't re-pull image when using 'image' in devcontainer.json #7104

Open
@natescherer

Description

@natescherer
  • VSCode Version: 1.70.2
  • Local OS Version: Win 10 21H1
  • Remote OS Version: Debian 11
  • Remote Extension/Connection Type: Containers
  • Logs:

Steps to Reproduce:

  1. Attempt to use 'Rebuild Container Without Cache' on a devcontainer.json that uses 'image' and not 'dockerFile'

Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes

Hello! I've noticed that calling 'Rebuild Container Without Cache' only works properly when the devcontainer.json is using 'dockerFile' and not 'image'. When the json file is using a Dockerfile, the container is fully rebuilt, but when it is just using 'image', no rebuild occurs and the container just restarts. Is this intentional?

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugcontainersIssue in vscode-remote containers

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions