Tool for adding profiles to Windows Terminal related to containers, supporting following scenarios
Every 10 seconds configuration is refreshed and exited containers are removed. Note that you have to close session by typing 'exit', otherwise container will continue to run in detached state. Assumption is that tool will be running on a WSL instance on a Windows machine, and that Windows Terminal is already installed.
More information on Blog and Github.
$fragmentPath = "Users/$($env:USERNAME)/AppData/Local/Microsoft/Windows Terminal/Fragments/DevOpsifyMe.ContainersTerminal"
$windowsPath = "c:/$fragmentPath"
$linuxPath = "/mnt/c/$fragmentPath"
New-Item -Type Directory $windowsPath -Force | Out-Null
docker run `
-d --restart=always `
--name containersterminal `
-e FRAGMENT_WIN_PATH=$windowsPath `
-e KNOWN_IMAGES='debian;ubuntu;golang' `
-v /run/docker.sock:/var/run/docker.sock `
-v "$($linuxPath):/output" `
devopsifyme/containersterminal:latest
Content type
Image
Digest
sha256:8f4e65305…
Size
134.6 MB
Last updated
over 3 years ago
docker pull devopsifyme/containersterminal