https://github.com/jmcombs/powershell
LTS versions of PowerShell Core and .NET Core in Linux Container
https://github.com/jmcombs/powershell
docker dotnetcore powershellcore
Last synced: 7 months ago
JSON representation
LTS versions of PowerShell Core and .NET Core in Linux Container
- Host: GitHub
- URL: https://github.com/jmcombs/powershell
- Owner: jmcombs
- License: gpl-3.0
- Created: 2025-03-22T20:56:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-10T00:56:44.000Z (8 months ago)
- Last Synced: 2025-08-10T02:31:38.766Z (8 months ago)
- Topics: docker, dotnetcore, powershellcore
- Language: Shell
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# powershell
LTS versions of PowerShell Core and .NET Core in Linux. Published for 64-bit `x86` and `ARM` architectures.

[](https://hub.docker.com/r/jmcombs/powershell "Click to view the image on Docker Hub")
[](https://hub.docker.com/r/jmcombs/powershell "Click to view the image on Docker Hub")
[](https://github.com/jmcombs/powershell/issues "Click to view or open issues")
## About
This container is based on the the latest Long Term Support (LTS) [Ubuntu (Docker Official Image)](https://hub.docker.com/_/ubuntu) image along with the latest LTS releases of .NET Core Runtime and PowerShell Core.
## Versions
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 | 8.0.19 |
| PowerShell Core | 7.4.11 |
## How to Use
### **Requirements**
- Container's non-root and default user is `coder`
- Container's default shell is `pwsh`
- Container's default working directory is `/home/coder`
### **Running Container**
```shell
docker run -it jmcombs/powershell
```
## Development
### **Testing**
This repository uses [bats-core](https://github.com/bats-core/bats-core) for testing bash scripts. To run tests locally:
```shell
# 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 all tests
bats tests/
# Run specific test files
bats tests/unit/test_get_net_pwsh_versions.bats
bats tests/integration/test_script_integration.bats
```
### **Contributing**
Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on contributing to this project.