devcontainers / devcontainers/images

anaconda devcontainer docs example does not work

Open
#1,354 6 comments 0 reactions 1 assignee Claimed by @v-Kaniska244 View on GitHub
Dominant language
Shell
Stars
2.1k
Forks
963
Avg merge
7h 48m
Merged PRs (30d)
11

Description

If using the default Dockerfile, and devcontainer.json including three simple enhancements, which are also mentioned and shown in the readme:

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [8888],

// Use 'postStartCommand' to run commands after the container is created.
"postStartCommand": "nohup bash -c 'jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root &'",

// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"

This will never complete when opening a local workspace in devcontainer.

I'm not sure what the fix is, but, I think the example should be made to work correctly, as this is a very common configuration.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.