Skip to content

Commit 0562234

Browse files
authored
add the ip argument of jupyter server for k8s container (#9977)
fix https://github.com/microsoft/vscode-python/issues/9976
1 parent 9274435 commit 0562234

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/2 Fixes/9976.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add --ip=127.0.0.1 argument of jupyter server when running in k8s container

src/client/datascience/jupyter/notebookStarter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export class NotebookStarter implements Disposable {
211211
// Check for a docker situation.
212212
try {
213213
const cgroup = await this.fileSystem.readFile('/proc/self/cgroup').catch(() => '');
214-
if (!cgroup.includes('docker')) {
214+
if (!cgroup.includes('docker') && !cgroup.includes('kubepods')) {
215215
return args;
216216
}
217217
// We definitely need an ip address.

0 commit comments

Comments
 (0)