microsoft / microsoft/vscode-remote-release

Containers: make opening a container from Dockerfile a nice experience

Open
#2,468 8 comments 0 reactions 2 assignees View on GitHub

@Chuxel is already working on this.

Since Mar 3, 2020.

containers under-discussion
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Occasionally I need to test something in VSCode's docker container for Linux that we use for building VSCode: https://github.com/microsoft/vscode-linux-build-agent/tree/master/x64

That is the moment when I am using the Remote Container and Docker extension. The flow I want is the following: given a Dockerfile, allow me to open a local folder on my OS inside that docker file. This should be a one-click command that does:

  • create an image
  • create a container
  • start the container
  • opens a folder I choose in that container in a VSCode instance

Today this is not possible, the steps are:

  • right-click Dockerfile -> create image
  • open a terminal and run the image so that it becomes a container to connect to (it needs to run a long running command to not shutdown directly)
  • right click container -> open folder in container

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.