12

The recent update on VScode made this option disappear. How do I rebuild the container when running the dev container?

enter image description here

Alexander
  • 339
  • 3
  • 13

2 Answers2

13

In the primary sidebar: click on "Remote Explorer", then right click on the Dev container you want to rebuild, there you'll find the "Rebuild Container" option.

boompie123
  • 131
  • 3
1

There are two commands that rebuild the image.

  • When running vscode inside the container: Dev Containers: Rebuild Container and Rebuild Container Without Cache
  • When not in the container: Dev Containers: Rebuild and Reopen in Container and Rebuild Without Cache and Reopen in Container

Source

momvart
  • 1,737
  • 1
  • 20
  • 32