Skip to content

oysteinje/devcontainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Quickstart

Requirements

To connect to the container from vscode

Dev Containers: Open Folder in Container

Whenever you do a change to Dockerfile or .devcontainer

Dev Containers: Rebuild Container

How to use devcontainers outside vscode

The CLI requires Node.js 14.17.0 or later. TIP: Use nvm install node --reinstall-packages-from=$(nvm current)

npm install -g @devcontainers/cli
devcontainer up --workspace-folder . --remove-existing-container
devcontainer exec --workspace-folder . pwsh

If you have made changes to the devcontainer setttings, then run the following:

devcontainer up --workspace-folder . --remove-existing-container

If you have made changes to the Dockerfile, then run the following:

devcontainer up --workspace-folder . --remove-existing-container --build-no-cache

You can also use your personal dotfiles repository. Here I use my own personal dotfiles repository.

devcontainer up --workspace-folder . --remove-existing-container --dotfiles-repository https://github.com/oysteinje/dotfiles.git

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •