@@ -398,9 +398,9 @@ func Run(options ...RunOption) {
398
398
tasksSuccessChan := make (chan taskSuccess , 1 )
399
399
go taskManager .Run (ctx , & wg , tasksSuccessChan )
400
400
401
- if ! opts .RunGP && ! cfg . isDebugWorkspace () {
401
+ if ! opts .RunGP {
402
402
wg .Add (1 )
403
- go socketActivationForDocker (ctx , & wg , termMux )
403
+ go socketActivationForDocker (ctx , & wg , termMux , cfg . isDebugWorkspace () )
404
404
}
405
405
406
406
if cfg .isHeadless () {
@@ -1499,7 +1499,7 @@ func recordInitializerMetrics(path string, metrics *metrics.SupervisorMetrics) {
1499
1499
}
1500
1500
}
1501
1501
1502
- func socketActivationForDocker (ctx context.Context , wg * sync.WaitGroup , term * terminal.Mux ) {
1502
+ func socketActivationForDocker (ctx context.Context , wg * sync.WaitGroup , term * terminal.Mux , isDebugWorkspace bool ) {
1503
1503
defer wg .Done ()
1504
1504
1505
1505
fn := "/var/run/docker.sock"
@@ -1521,6 +1521,10 @@ func socketActivationForDocker(ctx context.Context, wg *sync.WaitGroup, term *te
1521
1521
cmd := exec .Command ("/usr/bin/docker-up" )
1522
1522
cmd .Env = append (os .Environ (), "LISTEN_FDS=1" )
1523
1523
cmd .ExtraFiles = []* os.File {socketFD }
1524
+ if isDebugWorkspace {
1525
+ cmd .Args = append (cmd .Args , "--iface" , "eth0" )
1526
+ cmd .Args = append (cmd .Args , "--data-root" , "/workspace/.docker-root-debug" )
1527
+ }
1524
1528
alias , err := term .Start (cmd , terminal.TermOptions {
1525
1529
Annotations : map [string ]string {
1526
1530
"gitpod.supervisor" : "true" ,
0 commit comments