cli tool for attaching containers directly to vscode
- Remote Development (VS Code Extension)
VS Marketplace link: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack
The basic usage is as follows:
# Display a list of containers
docker-code-link list
# Attach to a specific container
docker-code-link attach [container-name]
bash
bind -x '"\C-p":"/path/to/docker-code-link list\n"'
zsh
bindkey -s "^P" "/path/to/docker-code-link list\n"
-
Display a list of Docker containers
-
Attach to a selected container using VS Code
This requires go >= 1.20
If you wish to build docker-code-link from source for your specific platform, follow these steps:
- Clone the Repository:
git clone https://github.com/mizunara-tech/docker-code-link.git
cd docker-code-link
- Build the Binary:
For Linux/Mac:
GOOS=linux GOARCH=amd64 go build -o docker-code-link ./cmd/docker-code-link
For Windows:
GOOS=windows GOARCH=amd64 go build -o docker-code-link.exe ./cmd/docker-code-link
Replace GOOS and GOARCH values as per your requirement.
This project is provided under the MIT License.
If you would like to contribute, please send a pull request.