images icon indicating copy to clipboard operation
images copied to clipboard

anaconda devcontainer docs example does not work

Open wkhatch opened this issue 10 months ago • 6 comments

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.

wkhatch avatar Mar 24 '25 02:03 wkhatch