-
Notifications
You must be signed in to change notification settings - Fork 955
feat: CLI update secure docker to python3.14#7926
Conversation
CLI: update secure docker to python3.14
Use uv:0.9.25-python3.14-bookworm image
Also /app does not exist, so use /home for work directory.
Fixes:
$ marimo edit --sandbox https://molab.marimo.io/notebooks/nb_g6ygAQ8b1HMSaoszTGEGqy
Would you like to run it in a secure docker container? [Y/n]: y
Starting containerized marimo notebook
Running command: docker run --rm -d -p 8080:8080 -e MARIMO_MANAGE_SCRIPT_METADATA=true -e MARIMO_IN_SECURE_ENVIRONMENT=true -w /app ghcr.io/astral-sh/uv:0.4.21-python3.12-bookworm uvx marimo edit --sandbox --no-token -p 8080 --host 0.0.0.0 https://molab.marimo.io/notebooks/nb_g6ygAQ8b1HMSaoszTGEGqy Failed to start Docker container: Command '['docker', 'run', '--rm', '-d', '-p', '8080:8080', '-e', 'MARIMO_MANAGE_SCRIPT_METADATA=true', '-e', 'MARIMO_IN_SECURE_ENVIRONMENT=true', '-w', '/app', 'ghcr.io/astral-sh/uv:0.4.21-python3.12-bookworm', 'uvx', 'marimo', 'edit', '--sandbox', '--no-token', '-p', '8080', '--host', '0.0.0.0', 'https://molab.marimo.io/notebooks/nb_g6ygAQ8b1HMSaoszTGEGqy ']' returned non-zero exit status 126.
Stopping and removing container...
Container stopped and removed successfully
Error: workdir "/app" does not exist on container...
and
error: No interpreter found for Python >=3.14 in virtual environments, managed installations, or system path
Checklist
- [x ] I have read the contributor guidelines.
- Tests have been added for the changes made.
- Documentation has been updated where applicable, including docstrings for API changes.
- Pull request title is a good summary of the changes - it will be used in the release notes.
Fixes:
$ marimo edit --sandbox https://molab.marimo.io/notebooks/nb_g6ygAQ8b1HMSaoszTGEGqy
This notebook is hosted on a remote server.
Would you like to run it in a secure docker container? [Y/n]: y
Starting containerized marimo notebook
Running command: docker run --rm -d -p 8080:8080 -e MARIMO_MANAGE_SCRIPT_METADATA=true -e MARIMO_IN_SECURE_ENVIRONMENT=true -w /app ghcr.io/astral-sh/uv:0.4.21-python3.12-bookworm uvx marimo edit --sandbox --no-token -p 8080 --host 0.0.0.0 https://molab.marimo.io/notebooks/nb_g6ygAQ8b1HMSaoszTGEGqy
Failed to start Docker container: Command '['docker', 'run', '--rm', '-d', '-p', '8080:8080', '-e', 'MARIMO_MANAGE_SCRIPT_METADATA=true', '-e', 'MARIMO_IN_SECURE_ENVIRONMENT=true', '-w', '/app', 'ghcr.io/astral-sh/uv:0.4.21-python3.12-bookworm', 'uvx', 'marimo', 'edit', '--sandbox', '--no-token', '-p', '8080', '--host', '0.0.0.0', 'https://molab.marimo.io/notebooks/nb_g6ygAQ8b1HMSaoszTGEGqy']' returned non-zero exit status 126.
Stopping and removing container...
Container stopped and removed successfully
Error: workdir "/app" does not exist on container def1e28dd32293cfd511fa4f3a67cae27a4f101aaca95d9c3a0e7c97a27186b7
and
error: No interpreter found for Python >=3.14 in virtual environments, managed installations, or system path
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
All contributors have signed the CLA |
|
I have read the CLA Document and I hereby sign the CLA |
I kept the same pattern as the original code in freezing the uv and python versions.
|
|
@EdSwarthout - im game to use the latest only argument i can think of is to avoid continue to download newer versions each time (not sure what the TTL would be) |
|
Development release published. You may be able to view the changes at https://marimo.app?v=0.19.5-dev38 |
and I suppose a frozen version is better for CI and security |
Use uv:0.9.25-python3.14-bookworm image
Also /app does not exist, so use /home for work directory.
Fixes:
$ `marimo edit --sandbox
https://molab.marimo.io/notebooks/nb_g6ygAQ8b1HMSaoszTGEGqy`
```This notebook is hosted on a remote server.
Would you like to run it in a secure docker container? [Y/n]: y
Starting containerized marimo notebook
Running command: docker run --rm -d -p 8080:8080 -e MARIMO_MANAGE_SCRIPT_METADATA=true -e MARIMO_IN_SECURE_ENVIRONMENT=true -w /app ghcr.io/astral-sh/uv:0.4.21-python3.12-bookworm uvx marimo edit --sandbox --no-token -p 8080 --host 0.0.0.0 https://molab.marimo.io/notebooks/nb_g6ygAQ8b1HMSaoszTGEGqy Failed to start Docker container: Command '['docker', 'run', '--rm', '-d', '-p', '8080:8080', '-e', 'MARIMO_MANAGE_SCRIPT_METADATA=true', '-e', 'MARIMO_IN_SECURE_ENVIRONMENT=true', '-w', '/app', 'ghcr.io/astral-sh/uv:0.4.21-python3.12-bookworm', 'uvx', 'marimo', 'edit', '--sandbox', '--no-token', '-p', '8080', '--host', '0.0.0.0', 'https://molab.marimo.io/notebooks/nb_g6ygAQ8b1HMSaoszTGEGqy']' returned non-zero exit status 126.
Stopping and removing container...
Container stopped and removed successfully
```
`Error: workdir "/app" does not exist on container...`
and
`error: No interpreter found for Python >=3.14 in virtual environments,
managed installations, or system path`
## Checklist
- [x ] I have read the [contributor
guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md).
- [ ] Tests have been added for the changes made.
- [ ] Documentation has been updated where applicable, including
docstrings for API changes.
- [ ] Pull request title is a good summary of the changes - it will be
used in the [release
notes](https://github.com/marimo-team/marimo/releases).