Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/2 Fixes/9976.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add --ip=127.0.0.1 argument of jupyter server when running in k8s container
2 changes: 1 addition & 1 deletion src/client/datascience/jupyter/notebookStarter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class NotebookStarter implements Disposable {
// Check for a docker situation.
try {
const cgroup = await this.fileSystem.readFile('/proc/self/cgroup').catch(() => '');
if (!cgroup.includes('docker')) {
if (!cgroup.includes('docker') && !cgroup.includes('kubepods')) {
return args;
}
// We definitely need an ip address.
Expand Down