Skip to content
This repository was archived by the owner on Feb 8, 2022. It is now read-only.

Commit

Permalink
enable debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Taggart committed May 2, 2016
1 parent 06b1c9e commit 7999a68
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions run-dockerforwindows.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# start VcXsrv if it is not started yet
$prog="$env:ProgramFiles\VcXsrv\vcxsrv.exe"
if (! (ps | ? {$_.path -eq $prog})) {& $prog -ac -multiwindow}
if (! (ps | ? {$_.path -eq $prog})) {& $prog -multiwindow -ac}

# get the IP address used by Docker for Windows
$ip = Get-NetIPAddress `
Expand All @@ -9,4 +9,7 @@ $ip = Get-NetIPAddress `

# start Visual Studo Code as the vscode user
$cmd="export DISPLAY=${ip}:0; code -w ."
docker run --rm ctaggart/golang-vscode su - vscode -c $cmd
docker run --rm `
--security-opt seccomp=unconfined `
ctaggart/golang-vscode `
su - vscode -c $cmd

0 comments on commit 7999a68

Please sign in to comment.