LTS versions of PowerShell Core and .NET Core in Linux Container
3.8K
LTS versions of PowerShell Core and .NET Core in Linux. Published for 64-bit x86 and ARM architectures.
This container is based on the the latest Long Term Support (LTS) Ubuntu (Docker Official Image) image along with the latest LTS releases of .NET Core Runtime and PowerShell Core.
If this image is part of your daily workflow—whether as an individual developer or in your team's CI/CD pipelines—consider sponsoring on GitHub. Sponsorship helps fund ongoing maintenance, timely .NET and PowerShell LTS updates, and improvements to the prompt and testing infrastructure relied on in automated environments.
This container includes an enhanced PowerShell experience with:
This repository does automated weekly builds with the latest published LTS versions of .NET Core and PowerShell Core. Below are the current versions included in the latest build.
| Component | Version |
|---|---|
| .NET Core Runtime | 10.0.7 |
| PowerShell Core | 7.4.15 |
coderpwsh/home/coder# Default - Blue PSL 10K theme (works offline, no internet required)
docker run -it jmcombs/powershell
Customize the Oh My Posh prompt behavior at runtime using environment variables:
| Variable | Default | Description |
|---|---|---|
ENABLE_OHMYPOSH | true | Set to false or 0 to disable Oh My Posh entirely |
OHMYPOSH_THEME | (empty) | Theme name or URL; if empty, uses embedded Blue PSL 10K theme |
# Disable Oh My Posh (use basic PowerShell prompt)
docker run -it -e ENABLE_OHMYPOSH=false jmcombs/powershell
# Use a built-in Oh My Posh theme (downloads from GitHub)
docker run -it -e OHMYPOSH_THEME=atomic jmcombs/powershell
docker run -it -e OHMYPOSH_THEME=jandedobbeleer jmcombs/powershell
docker run -it -e OHMYPOSH_THEME=paradox jmcombs/powershell
# Use a custom theme from URL
docker run -it -e OHMYPOSH_THEME=https://example.com/my-theme.omp.json jmcombs/powershell
The container implements a robust fallback hierarchy:
OHMYPOSH_THEME (if set)This ensures the container always starts with a working prompt, even without internet connectivity.
This repository uses bats-core for both unit and integration tests.
tests/unit/) validate local behavior such as script structure, helper functions, environment file validation, and PowerShell profile logic. They do not require network access.tests/integration/) run the version discovery script against the live Microsoft and GitHub endpoints and exercise the built Docker image with various environment variable configurations. These tests require network access and Docker.Test Coverage:
ENABLE_OHMYPOSH, OHMYPOSH_THEME)SHOW_CONTAINER_INFO)To run tests locally:
# Install bats-core (if not already installed)
git clone https://github.com/bats-core/bats-core.git
cd bats-core && sudo ./install.sh /usr/local
# Run offline unit tests
bats tests/unit/
# Run live integration tests (requires network and Docker)
bats tests/integration/
Please see CONTRIBUTING.md for guidelines on contributing to this project.
Content type
Image
Digest
sha256:848a0d827…
Size
260.6 MB
Last updated
3 months ago
docker pull jmcombs/powershell