Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: CLI update secure docker to python3.14#7926

Merged
mscolnick merged 1 commit intomarimo-team:mainfrom
EdSwarthout:cli-update-python
Jan 22, 2026
Merged

feat: CLI update secure docker to python3.14#7926
mscolnick merged 1 commit intomarimo-team:mainfrom
EdSwarthout:cli-update-python

Conversation

Copy link
Contributor

EdSwarthout commented Jan 21, 2026

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.

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 def1e28dd32293cfd511fa4f3a67cae27a4f101aaca95d9c3a0e7c97a27186b7

and

error: No interpreter found for Python >=3.14 in virtual environments, managed installations, or system path
Copy link

vercel bot commented Jan 21, 2026 *
edited
Loading

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
marimo-docs Ready Preview, Comment Jan 21, 2026 11:19pm

Copy link

github-actions bot commented Jan 21, 2026 *
edited
Loading

All contributors have signed the CLA
Posted by the CLA Assistant Lite bot.

vercel bot deployed to Preview January 21, 2026 23:19 View deployment
Copy link
Contributor Author

EdSwarthout commented Jan 21, 2026 *
edited
Loading

I have read the CLA Document and I hereby sign the CLA

mscolnick approved these changes Jan 21, 2026
mscolnick added the enhancement New feature or request label Jan 21, 2026
Copy link
Contributor Author

EdSwarthout commented Jan 22, 2026

CLI: update secure docker to python3.14

Use uv:0.9.25-python3.14-bookworm image

I kept the same pattern as the original code in freezing the uv and python versions.
But why not just freeze the python version and let the uv team control the uv version?

image = "ghcr.io/astral-sh/uv:python3.14-bookworm"

Copy link
Contributor

mscolnick commented Jan 22, 2026 *
edited
Loading

@EdSwarthout - im game to use the latest uv (and just pin python)

only argument i can think of is to avoid continue to download newer versions each time (not sure what the TTL would be)

mscolnick merged commit aaf47a6 into marimo-team:main Jan 22, 2026
34 of 51 checks passed
Copy link

github-actions bot commented Jan 22, 2026

Development release published. You may be able to view the changes at https://marimo.app?v=0.19.5-dev38

Copy link
Contributor Author

EdSwarthout commented Jan 22, 2026

@EdSwarthout - im game to use the latest uv (and just pin python)

only argument i can think of is to avoid continue to download newer versions each time (not sure what the TTL would be)

and I suppose a frozen version is better for CI and security

botterYosuke pushed a commit to botterYosuke/marimo that referenced this pull request Jan 23, 2026
## 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`
```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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

mscolnick mscolnick approved these changes

Assignees

No one assigned

Labels

enhancement New feature or request

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants